bug 617963, Better cascading of collections table.
This commit is contained in:
Родитель
89a42a24f6
Коммит
21776d9cab
|
@ -0,0 +1,10 @@
|
|||
SET FOREIGN_KEY_CHECKS=0;
|
||||
|
||||
ALTER TABLE `collections` DROP FOREIGN KEY `collections_ibfk_7`;
|
||||
|
||||
ALTER TABLE `collections` ADD CONSTRAINT `collections_ibfk_7`
|
||||
FOREIGN KEY `collections_ibfk_7` (`author_id`)
|
||||
REFERENCES `users` (`id`)
|
||||
ON DELETE CASCADE;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
Загрузка…
Ссылка в новой задаче