generated from recmo/rust-service-template
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
81 additions
and
647 deletions.
There are no files selected for viewing
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
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,13 @@ | ||
CREATE TABLE recoveries ( | ||
existing_commitment BYTEA NOT NULL UNIQUE, | ||
new_commitment BYTEA NOT NULL UNIQUE | ||
); | ||
|
||
ALTER TABLE unprocessed_identities | ||
ADD COLUMN eligibility TIMESTAMPTZ, | ||
ADD COLUMN status VARCHAR(50) NOT NULL, | ||
ADD COLUMN processed_at TIMESTAMPTZ, | ||
ADD COLUMN error_message TEXT; | ||
|
||
ALTER TABLE unprocessed_identities | ||
DROP CONSTRAINT unique_commitment; |
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 @@ | ||
DROP TABLE recoveries; | ||
|
||
ALTER TABLE unprocessed_identities | ||
DROP COLUMN eligibility, | ||
DROP COLUMN status, | ||
DROP COLUMN processed_at, | ||
DROP COLUMN error_message; | ||
|
||
ALTER TABLE unprocessed_identities | ||
ADD CONSTRAINT unique_commitment UNIQUE (commitment); | ||
|
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
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
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
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
Oops, something went wrong.