fix migration

This commit is contained in:
Conrad Irwin 2023-10-13 15:08:09 -06:00
parent af11cc6cfd
commit f8fd77b83e

View file

@ -1,4 +1,4 @@
ALTER TABLE channel_members ADD COLUMN role TEXT;
UPDATE channel_members SET role = CASE WHEN admin THEN 'admin' ELSE 'member' END;
ALTER TABLE channels ADD COLUMN visibility TEXT NOT NULL DEFAULT 'channel_members';
ALTER TABLE channels ADD COLUMN visibility TEXT NOT NULL DEFAULT 'members';