Make word column primary key of chat_filter_rule

This commit is contained in:
Ben 2019-10-12 00:07:00 +01:00
parent 165bc95ccf
commit 851878a218

View File

@ -446,7 +446,8 @@ CREATE TABLE chat_filter_rule (
word TEXT,
filter BOOLEAN NOT NULL DEFAULT FALSE,
warn BOOLEAN NOT NULL DEFAULT FALSE,
ban BOOLEAN NOT NULL DEFAULT FALSE
ban BOOLEAN NOT NULL DEFAULT FALSE,
PRIMARY KEY(word)
);
CREATE UNIQUE INDEX chat_filter_rule_word ON chat_filter_rule(word);