mirror of https://github.com/sipwise/db-schema.git
since it can be written using a separate db connection, pointing to a database that is not fully replicated, foreign keys will cause failing inserts, updates etc. Change-Id: I65108abdce1f5ad86b982adaf4d0d762fd0a634dchanges/28/11328/1
parent
95e72d9136
commit
e0efa1ebd5
@ -0,0 +1,4 @@
|
||||
USE billing;
|
||||
set autocommit=0;
|
||||
alter table voip_intercept add CONSTRAINT `vi_resellerid_ref` FOREIGN KEY (`reseller_id`) REFERENCES `resellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||
commit;
|
@ -0,0 +1,4 @@
|
||||
USE billing;
|
||||
set autocommit=0;
|
||||
alter table voip_intercept drop foreign key `vi_resellerid_ref`;
|
||||
commit;
|
Loading…
Reference in new issue