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

Fix an issue where guilds could have multiple modlog channels stored in the database.

This commit is contained in:
wlinator 2024-08-04 12:31:19 -04:00
parent badf66239e
commit 0bdf2ea7c4

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,