1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

added blacklisted word table

This commit is contained in:
Lynne Megido 2019-09-01 13:59:44 +10:00
parent ba81cbbef5
commit e0f3a232bc

View file

@ -42,3 +42,9 @@ CREATE TABLE IF NOT EXISTS `posts` (
`content` VARCHAR(65535) NOT NULL, `content` VARCHAR(65535) NOT NULL,
`cw` BOOLEAN 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
)