Skip to content

Commit

Permalink
Add DEFAULT to NOT NULL fields of ApplicationState DB
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan-rns authored and jgwest committed Oct 4, 2023
1 parent 25c1b7f commit 1cf2058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/db-migration/migrations/000020_v20.down.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ALTER TABLE ApplicationState DROP COLUMN argocd_application_status;

ALTER TABLE ApplicationState ADD COLUMN health VARCHAR (30) NOT NULL;
ALTER TABLE ApplicationState ADD COLUMN health VARCHAR (30) NOT NULL DEFAULT 'Unknown';
ALTER TABLE ApplicationState ADD COLUMN message VARCHAR (1024);
ALTER TABLE ApplicationState ADD COLUMN revision VARCHAR (1024);
ALTER TABLE ApplicationState ADD COLUMN sync_status VARCHAR (30) NOT NULL;
ALTER TABLE ApplicationState ADD COLUMN sync_status VARCHAR (30) NOT NULL DEFAULT 'Unknown';
ALTER TABLE ApplicationState ADD COLUMN resources bytea;
ALTER TABLE ApplicationState ADD COLUMN reconciled_state VARCHAR ( 4096 );
ALTER TABLE ApplicationState ADD COLUMN operation_state bytea;
Expand Down

0 comments on commit 1cf2058

Please sign in to comment.