Merge branch 'python-rewrite' into reaction_roles
This commit is contained in:
@@ -4,7 +4,7 @@ CREATE TABLE VersionHistory(
|
||||
time TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
author TEXT
|
||||
);
|
||||
INSERT INTO VersionHistory (version, author) VALUES (3, 'Initial Creation');
|
||||
INSERT INTO VersionHistory (version, author) VALUES (4, 'Initial Creation');
|
||||
|
||||
|
||||
CREATE OR REPLACE FUNCTION update_timestamp_column()
|
||||
@@ -72,7 +72,12 @@ CREATE TABLE guild_config(
|
||||
accountability_reward INTEGER,
|
||||
accountability_price INTEGER,
|
||||
video_studyban BOOLEAN,
|
||||
video_grace_period INTEGER
|
||||
video_grace_period INTEGER,
|
||||
greeting_channel BIGINT,
|
||||
greeting_message TEXT,
|
||||
returning_message TEXT,
|
||||
starting_funds INTEGER,
|
||||
persist_roles BOOLEAN
|
||||
);
|
||||
|
||||
CREATE TABLE ignored_members(
|
||||
@@ -92,6 +97,18 @@ CREATE TABLE donator_roles(
|
||||
roleid BIGINT NOT NULL
|
||||
);
|
||||
CREATE INDEX donator_roles_guilds ON donator_roles (guildid);
|
||||
|
||||
CREATE TABLE autoroles(
|
||||
guildid BIGINT NOT NULL,
|
||||
roleid BIGINT NOT NULL
|
||||
);
|
||||
CREATE INDEX autoroles_guilds ON autoroles (guildid);
|
||||
|
||||
CREATE TABLE bot_autoroles(
|
||||
guildid BIGINT NOT NULL ,
|
||||
roleid BIGINT NOT NULL
|
||||
);
|
||||
CREATE INDEX bot_autoroles_guilds ON bot_autoroles (guildid);
|
||||
-- }}}
|
||||
|
||||
-- Workout data {{{
|
||||
@@ -434,6 +451,7 @@ CREATE TABLE rented_members(
|
||||
userid BIGINT NOT NULL
|
||||
);
|
||||
CREATE INDEX rented_members_channels ON rented_members (channelid);
|
||||
CREATE INDEX rented_members_users ON rented_members (userid);
|
||||
-- }}}
|
||||
|
||||
-- Accountability Rooms {{{
|
||||
@@ -510,5 +528,14 @@ CREATE TABLE reaction_role_expiring(
|
||||
);
|
||||
CREATE UNIQUE INDEX reaction_role_expiry_members ON reaction_role_expiring (guildid, userid, roleid);
|
||||
|
||||
-- Member Role Data {{{
|
||||
CREATE TABLE past_member_roles(
|
||||
guildid BIGINT NOT NULL,
|
||||
userid BIGINT NOT NULL,
|
||||
roleid BIGINT NOT NULL,
|
||||
_timestamp TIMESTAMPTZ DEFAULT now(),
|
||||
FOREIGN KEY (guildid, userid) REFERENCES members (guildid, userid)
|
||||
);
|
||||
CREATE INDEX member_role_persistence_members ON past_member_roles (guildid, userid);
|
||||
-- }}}
|
||||
-- vim: set fdm=marker:
|
||||
|
||||
Reference in New Issue
Block a user