1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

Merge pull request #21 from wlinator/moderation

Fix an issue where guilds could have multiple modlog channels stored
This commit is contained in:
wlinator 2024-08-04 12:32:08 -04:00
commit 925ff05ef8

View file

@ -1,6 +1,5 @@
CREATE TABLE IF NOT EXISTS mod_log (
id SERIAL PRIMARY KEY,
guild_id BIGINT UNSIGNED NOT NULL,
guild_id BIGINT UNSIGNED NOT NULL PRIMARY KEY,
channel_id BIGINT UNSIGNED NOT NULL,
is_enabled BOOLEAN NOT NULL DEFAULT TRUE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,