-
Notifications
You must be signed in to change notification settings - Fork 21
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
1 parent
f07f6cd
commit 62e997c
Showing
7 changed files
with
281 additions
and
11 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
full-service/migrations/2023-11-27-175035_destination_memos/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 destination_memos; |
13 changes: 13 additions & 0 deletions
13
full-service/migrations/2023-11-27-175035_destination_memos/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,13 @@ | ||
CREATE TABLE destination_memos ( | ||
txo_id TEXT PRIMARY KEY NOT NULL, | ||
recipient_address_hash TEXT NOT NULL, | ||
num_recipients INT NOT NULL, | ||
fee UNSIGNED BIG INT NOT NULL, | ||
total_outlay UNSIGNED BIG INT NOT NULL, | ||
payment_request_id UNSIGNED BIG INT, | ||
payment_intent_id UNSIGNED BIG INT, | ||
FOREIGN KEY (txo_id) REFERENCES txos(id) | ||
); | ||
|
||
UPDATE accounts SET next_block_index = 0; | ||
UPDATE accounts SET resyncing = TRUE; |
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.