Skip to content

Commit

Permalink
Add a default (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink authored Nov 21, 2024
1 parent 0bea988 commit 64ccd3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE groups
ADD COLUMN purpose INTEGER NOT NULL;
ADD COLUMN purpose INTEGER NOT NULL DEFAULT 1;

UPDATE groups
SET purpose = CASE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE groups
ADD COLUMN conversation_type INTEGER NOT NULL;
ADD COLUMN conversation_type INTEGER NOT NULL DEFAULT 1;

UPDATE groups
SET conversation_type = CASE
Expand Down

0 comments on commit 64ccd3a

Please sign in to comment.