zed/crates/collab/migrations/20231011214412_add_guest_role.sql

5 lines
209 B
MySQL
Raw Normal View History

ALTER TABLE channel_members ADD COLUMN role TEXT;
UPDATE channel_members SET role = CASE WHEN admin THEN 'admin' ELSE 'member' END;
2023-10-13 21:08:09 +00:00
ALTER TABLE channels ADD COLUMN visibility TEXT NOT NULL DEFAULT 'members';