-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add migration for hmac keys database
- Loading branch information
1 parent
34427c9
commit 4d40363
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
xmtp_mls/migrations/2024-12-04-194513_hmac-keys-records-table/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS "hmac_key_records"; |
11 changes: 11 additions & 0 deletions
11
xmtp_mls/migrations/2024-12-04-194513_hmac-keys-records-table/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE "hmac_key_records"( | ||
-- Group ID that the Hmac keys are associated with | ||
"group_id" BLOB NOT NULL, | ||
-- Dm ID that the Hmac keys are associated with | ||
"dm_id" TEXT, | ||
-- The hmac key | ||
"hmac_key" BLOB NOT NULL, | ||
-- The number of 30 day periods since epoch | ||
"thirty_day_periods_since_epoch" INT NOT NULL, | ||
PRIMARY KEY ("group_id", "hmac_key") | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters