diff --git a/db_scripts/diff/15577.down b/db_scripts/diff/15577.down new file mode 100644 index 00000000..c7537122 --- /dev/null +++ b/db_scripts/diff/15577.down @@ -0,0 +1,9 @@ +USE provisioning; + +ALTER TABLE voip_fielddev_preferences drop constraint `v_fd_p_fielddeviceid_ref`; + +ALTER TABLE voip_fielddev_preferences + ADD CONSTRAINT `v_fd_p_deviceid_ref` + FOREIGN KEY (`device_id`) + REFERENCES `autoprov_devices` (`id`) + ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/db_scripts/diff/15577.up b/db_scripts/diff/15577.up new file mode 100644 index 00000000..6c2ea84e --- /dev/null +++ b/db_scripts/diff/15577.up @@ -0,0 +1,9 @@ +USE provisioning; + +ALTER TABLE voip_fielddev_preferences drop constraint `v_fd_p_deviceid_ref`; + +ALTER TABLE voip_fielddev_preferences + ADD CONSTRAINT `v_fd_p_fielddeviceid_ref` + FOREIGN KEY (`device_id`) + REFERENCES `autoprov_field_devices` (`id`) + ON DELETE CASCADE ON UPDATE CASCADE;