mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Cascade on author deletion
This commit is contained in:
parent
4d617c9c48
commit
bb52e5a804
3 changed files with 3 additions and 3 deletions
|
@ -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';
|
||||
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue