mirror of https://github.com/sipwise/db-schema.git
Add "ON UPDATE CASCADE ON DELETE CASCADE" to the ALTER statement to fix issue with other down scripts failing to delete the corresponding voip_preferences_enum entries due to this missing parameter in 15787.down script. Change-Id: I6bb91e9c0ea5f03c774ff826e8a29c0f5635eaafmr13.5
parent
58598eeaff
commit
40bf8fb473
@ -1,5 +1,4 @@
|
||||
USE provisioning;
|
||||
|
||||
ALTER TABLE voip_preferences_enum DROP FOREIGN KEY `pref_id_fk`;
|
||||
ALTER TABLE voip_preferences_enum ADD CONSTRAINT `voip_preferences_enum_ibfk_1` FOREIGN KEY (`preference_id`) REFERENCES `voip_preferences` (`id`);
|
||||
|
||||
ALTER TABLE voip_preferences_enum ADD CONSTRAINT `voip_preferences_enum_ibfk_1` FOREIGN KEY (`preference_id`) REFERENCES `voip_preferences` (`id`) ON UPDATE CASCADE ON DELETE CASCADE;
|
||||
|
||||
Loading…
Reference in new issue