addons-server/migrations/319-fix-submission-checklis...

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

2012-02-21 12:41:29 +04:00
# This isn't my fourth migration for the same table. What are you talking about?
ALTER TABLE `submission_checklist_apps` DROP FOREIGN KEY `addons_id_pk`;
ALTER TABLE `submission_checklist_apps` ADD CONSTRAINT `addons_id_pk`
FOREIGN KEY (`addon_id`) REFERENCES `addons` (`id`) ON DELETE CASCADE;