mirror of https://github.com/sipwise/db-schema.git
* the foreign key device_id pointed to table autoprov_devices
where the correct table is autoprov_field_devices.
Change-Id: I8523435970b31f011919c83c9615972a0f97b53a
changes/00/37200/2
parent
05632559ec
commit
86553dbc5b
@ -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;
|
||||
@ -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;
|
||||
Loading…
Reference in new issue