mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 18:21:39 +03:00
5 lines
209 B
SQL
5 lines
209 B
SQL
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 'members';
|