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: I65108abdce1f5ad86b982adaf4d0d762fd0a634d
(cherry picked from commit e0efa1ebd5)
changes/10/11510/1
parent
790a09b2b1
commit
59516fe785
@ -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