Cascade on author deletion

This commit is contained in:
Michael 2022-08-16 04:18:29 +00:00
parent 4d617c9c48
commit bb52e5a804
3 changed files with 3 additions and 3 deletions

View file

@ -1159,7 +1159,7 @@ CREATE TABLE IF NOT EXISTS `post-collection` (
INDEX `type` (`type`),
INDEX `author-id` (`author-id`),
FOREIGN KEY (`uri-id`) REFERENCES `item-uri` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE,
FOREIGN KEY (`author-id`) REFERENCES `contact` (`id`) ON UPDATE RESTRICT ON DELETE RESTRICT
FOREIGN KEY (`author-id`) REFERENCES `contact` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Collection of posts';
--