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 cfdf224
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
-- 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 = 1 THEN 1
WHEN conversation_type = 2 THEN 1
ELSE 2
END;

ALTER TABLE groups DROP COLUMN conversation_type;

0 comments on commit cfdf224

Please sign in to comment.