mirror of https://github.com/sipwise/db-schema.git
Change-Id: I490f9cc692497adeeea050f213d586c4d11ac045changes/02/27502/3
parent
50529552a1
commit
0d5a9ab224
@ -0,0 +1,8 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
ALTER TABLE voip_header_rule_sets
|
||||
DROP FOREIGN KEY vhrs_subscriber_ref,
|
||||
DROP subscriber_id;
|
||||
|
||||
commit;
|
||||
@ -0,0 +1,9 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
ALTER TABLE voip_header_rule_sets
|
||||
ADD `subscriber_id` int(11) unsigned AFTER reseller_id,
|
||||
ADD UNIQUE KEY vhrs_subscriber_idx (subscriber_id),
|
||||
ADD CONSTRAINT `vhrs_subscriber_ref` FOREIGN KEY (`subscriber_id`) REFERENCES `provisioning`.`voip_subscribers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
||||
commit;
|
||||
Loading…
Reference in new issue