2010-12-14 21:02:01 +03:00
|
|
|
-- If these FKs don't exist, run them manually and use:
|
|
|
|
-- schematic migrations/ -u 112
|
|
|
|
|
2011-01-12 23:13:34 +03:00
|
|
|
SET FOREIGN_KEY_CHECKS=0;
|
2010-12-14 21:34:02 +03:00
|
|
|
ALTER TABLE `log_activity_addon`
|
|
|
|
DROP FOREIGN KEY `activity_log_id_refs_id_9c20a926`;
|
2010-12-14 21:02:01 +03:00
|
|
|
|
2010-12-14 21:26:19 +03:00
|
|
|
ALTER TABLE `log_activity_addon` ADD CONSTRAINT `activity_log_id_refs_id_9c20a926` FOREIGN KEY `activity_log_id_refs_id_9c20a926` (`activity_log_id`)
|
2010-12-14 21:02:01 +03:00
|
|
|
REFERENCES `log_activity` (`id`)
|
|
|
|
ON DELETE CASCADE;
|
|
|
|
|
2010-12-14 21:45:23 +03:00
|
|
|
ALTER TABLE `log_activity_user`
|
|
|
|
DROP FOREIGN KEY `activity_log_id_refs_id_4f8d99d4`;
|
2010-12-14 21:02:01 +03:00
|
|
|
|
2010-12-14 21:45:23 +03:00
|
|
|
ALTER TABLE `log_activity_user` ADD CONSTRAINT `activity_log_id_refs_id_4f8d99d4` FOREIGN KEY `activity_log_id_refs_id_4f8d99d4` (`activity_log_id`)
|
2010-12-14 21:02:01 +03:00
|
|
|
REFERENCES `log_activity` (`id`)
|
|
|
|
ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2011-01-12 23:13:34 +03:00
|
|
|
SET FOREIGN_KEY_CHECKS=1;
|