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:
parent
ba81cbbef5
commit
e0f3a232bc
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue