addons-server/migrations/153-approvals-cascade.sql

9 строки
227 B
MySQL
Исходник Обычный вид История

2011-02-25 21:50:20 +03:00
ALTER TABLE `approvals`
DROP FOREIGN KEY `approvals_ibfk_3`;
ALTER TABLE `approvals` ADD CONSTRAINT `approvals_ibfk_3`
FOREIGN KEY `approvals_ibfk_3` (`addon_id`)
REFERENCES `addons` (`id`)
2011-02-25 22:30:50 +03:00
ON DELETE CASCADE;
2011-02-25 21:50:20 +03:00