-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APP-353 retirements multiple batches (#60)
- Loading branch information
Showing
6 changed files
with
63 additions
and
18 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
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,12 @@ | ||
--! Previous: sha1:80425329666e5d20b5fbb7b6179f3d19acceeb76 | ||
--! Hash: sha1:23379758e3a742625d5262c472693435196be95f | ||
|
||
ALTER TABLE public.retirements | ||
ADD COLUMN IF NOT EXISTS batch_denoms text[] DEFAULT ARRAY[]::text[] NOT NULL; | ||
|
||
UPDATE public.retirements | ||
SET batch_denoms = ARRAY[batch_denom]; | ||
|
||
-- TODO later once app fully migrated | ||
-- ALTER TABLE public.retirements | ||
-- DROP COLUMN IF EXISTS batch_denom; |
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,8 @@ | ||
--! Previous: sha1:23379758e3a742625d5262c472693435196be95f | ||
--! Hash: sha1:8aa6f840171d1c0076e70fbee8dd9b56f794a03d | ||
|
||
ALTER TABLE retirements | ||
DROP CONSTRAINT IF EXISTS retirements_tx_hash_key; | ||
|
||
ALTER TABLE retirements | ||
ADD CONSTRAINT retirements_tx_hash_key UNIQUE (tx_hash); |
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