-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve issue with node public key rotations db
- Loading branch information
1 parent
5598e58
commit ed513b0
Showing
3 changed files
with
183 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
atoma-state/src/migrations/20241202121152_node_public_key_rotation.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- Create tasks table | ||
CREATE TABLE IF NOT EXISTS node_public_key_rotations ( | ||
node_small_id BIGINT PRIMARY KEY, | ||
public_key_bytes TEXT UNIQUE NOT NULL, | ||
tdx_quote_bytes TEXT NOT NULL, | ||
public_key_bytes BYTEA UNIQUE NOT NULL, | ||
tdx_quote_bytes BYTEA NOT NULL, | ||
epoch BIGINT NOT NULL | ||
); |
2 changes: 2 additions & 0 deletions
2
atoma-state/src/migrations/20250103113154_add_key_rotation_counter.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,2 @@ | ||
ALTER TABLE node_public_key_rotations | ||
ADD COLUMN key_rotation_counter BIGINT NOT NULL DEFAULT 0; |
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