-
Notifications
You must be signed in to change notification settings - Fork 10
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
80092cb
commit c0b6443
Showing
8 changed files
with
179 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
...tamorph/store/postgresql/migrations/000019_add_status_history_default_constraint.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,5 @@ | ||
-- Down Migration: Remove default constraint from 'status_history' column in 'metamorph.transactions' table | ||
-- This migration removes the default value constraint from the 'status_history' column, so new records will require an explicit value or default to NULL. | ||
|
||
ALTER TABLE metamorph.transactions | ||
ALTER COLUMN status_history DROP DEFAULT; |
5 changes: 5 additions & 0 deletions
5
...metamorph/store/postgresql/migrations/000019_add_status_history_default_constraint.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,5 @@ | ||
-- Up Migration: Add default constraint to 'status_history' column in 'metamorph.transactions' table | ||
-- This migration sets the default value of the 'status_history' column to an empty JSON array ([]) for future records. | ||
|
||
ALTER TABLE metamorph.transactions | ||
ALTER COLUMN status_history SET DEFAULT '[]'::JSONB; |
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.