Foreign keys in messages now delete when parent key is deleted

This commit is contained in:
shockrah
2020-11-01 22:33:25 -08:00
parent 41c28cc845
commit 543feef330
4 changed files with 13 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `channels` (
`id` BIGINT UNSIGNED NOT NULL auto_increment,
`name` UNIQUE VARCHAR(255) NOT NULL,
`description` VARCHAR(1024),
`description` VARCHAR(4096),
`kind` INTEGER NOT NULL,
PRIMARY KEY(`id`), UNIQUE KEY(`name`)
);