From 851878a218a23781cb6be0acbc01eb440ddd936f Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 12 Oct 2019 00:07:00 +0100 Subject: [PATCH] Make word column primary key of chat_filter_rule --- houdini.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/houdini.sql b/houdini.sql index bd9178b..fa17cd6 100644 --- a/houdini.sql +++ b/houdini.sql @@ -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);