rewrite: New Video channels and moderation.
This commit is contained in:
10
data/migration/v12-13/moderation.sql
Normal file
10
data/migration/v12-13/moderation.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
DROP TABLE IF EXISTS video_exempt_roles CASCADE;
|
||||
UPDATE guild_config SET studyban_role = NULL WHERE video_studyban = False;
|
||||
|
||||
CREATE TABLE video_exempt_roles(
|
||||
guildid BIGINT NOT NULL,
|
||||
roleid BIGINT NOT NULL,
|
||||
_timestamp TIMESTAMPTZ NOT NULL DEFAULT now(),
|
||||
FOREIGN KEY (guildid) REFERENCES guild_config (guildid) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
PRIMARY KEY (guildid, roleid)
|
||||
);
|
||||
Reference in New Issue
Block a user