Skip to content

Commit

Permalink
add down
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Nov 13, 2024
1 parent 2b18f0e commit da7b64a
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
-- This file should undo anything in `up.sql`
ALTER TABLE groups
ADD COLUMN purpose INTEGER NOT NULL;

UPDATE groups
SET purpose = CASE
WHEN conversation_type = 3 THEN 2
ELSE 1
END;

ALTER TABLE groups DROP COLUMN conversation_type;

0 comments on commit da7b64a

Please sign in to comment.