feature (setprofile): Profile tag editor.

This commit is contained in:
2021-12-29 20:20:17 +02:00
parent 6aaa2377a4
commit 46bf03ae25
3 changed files with 245 additions and 6 deletions

View File

@@ -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 (6, 'Initial Creation');
INSERT INTO VersionHistory (version, author) VALUES (7, 'Initial Creation');
CREATE OR REPLACE FUNCTION update_timestamp_column()
@@ -683,4 +683,19 @@ CREATE TABLE past_member_roles(
CREATE INDEX member_role_persistence_members ON past_member_roles (guildid, userid);
-- }}}
-- Member profile tags {{{
CREATE TABLE member_profile_tags(
tagid SERIAL PRIMARY KEY,
guildid BIGINT NOT NULL,
userid BIGINT NOT NULL,
tag TEXT NOT NULL,
_timestamp TIMESTAMPTZ DEFAULT now(),
FOREIGN KEY (guildid, userid) REFERENCES members (guildid, userid)
);
-- }}}
-- Member goals {{{
-- }}}
-- vim: set fdm=marker: