-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use MintBtcOnchainState instead of paid flag
fixes #310
- Loading branch information
Showing
9 changed files
with
109 additions
and
46 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
6 changes: 3 additions & 3 deletions
6
...ee71eb2c9d1035b738cc08804f434d3d7445.json → ...23035e4a81824bef6a0ad47215f851fb1100.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...ha-mint/.sqlx/query-6d6efea17e2e8799c4e2e09c5eabf8e0e59da3646de7f1471b4507df7168ed32.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...a6e01d09d8b7cea5cf49c1a8403404b2f91d.json → ...44d890d22d06adc0313823dc8448e21e3f1c.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...ha-mint/.sqlx/query-c355619f3e7a684e1250933f4f80444b1a2535b8998deda34f84e4c4c5cd00d4.json
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
moksha-mint/migrations/20240801124852_btconchain_mint_state.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,15 @@ | ||
-- Add migration script here | ||
ALTER TABLE onchain_mint_quotes | ||
ADD COLUMN state TEXT; | ||
|
||
UPDATE onchain_mint_quotes | ||
SET state = CASE | ||
WHEN paid = true THEN 'PAID' | ||
WHEN paid = false THEN 'UNPAID' | ||
END; | ||
|
||
ALTER TABLE onchain_mint_quotes | ||
DROP COLUMN paid; | ||
|
||
ALTER TABLE onchain_mint_quotes | ||
ALTER COLUMN state SET NOT NULL; |
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