From e0f3a232bcd23a347e8e424f8f4742f7bfbad1c4 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Sep 2019 13:59:44 +1000 Subject: [PATCH] added blacklisted word table --- setup.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.sql b/setup.sql index 55b38e2..ed001bb 100644 --- a/setup.sql +++ b/setup.sql @@ -42,3 +42,9 @@ CREATE TABLE IF NOT EXISTS `posts` ( `content` VARCHAR(65535) NOT NULL, `cw` BOOLEAN NOT NULL ); +CREATE TABLE IF NOT EXISTS `word_blacklist` ( + `id` INT AUTO_INCREMENT PRIMARY KEY, + FOREIGN KEY (`bot_id`) REFERENCES bots(id) ON DELETE CASCADE, + `phrase` VARCHAR(128) NOT NULL, + `whole_word` BOOLEAN NOT NULL +)