-
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.
ARCO-194: update status history in transactions (#581)
* ARCO-193: remove unused columns add status history and last modified * ARCO-193: remove unnecessary comments * ARCO-194: update status history * ARCO-194: fix tests error * ARCO-194: fix e2e tests * ARCO-194: fix PR comments * ARCO-194: fix unit tests * ARCO-194: replace LastModified with actual time in tests
- Loading branch information
1 parent
b51638e
commit 21cc7a5
Showing
8 changed files
with
192 additions
and
55 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.