TT#9850 drop foreign keys of billing.voip_intercept

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
changes/28/11328/1
Rene Krenn 8 years ago
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…
Cancel
Save