MT#61351 change 15783.up to not_replicated

* reason for this change is because the related
  changes in the kamailio table get replicated to the
  active node during the upgrade and that breaks outbound peer
  provisioning / selection by running kamailio there

Change-Id: I69416b5737cf05695cbfd1c2e4544faa8b1a2ab0
mr13.1.1
Kirill Solomko 6 months ago
parent a9b6424088
commit 0afdb6cf33

@ -1,4 +1,6 @@
USE kamailio;
SET autocommit=0;
SET sql_log_bin=0;
UPDATE lcr_gw SET flags = id;

@ -1,4 +1,6 @@
USE provisioning;
SET autocommit=0;
SET sql_log_bin=0;
DROP TRIGGER IF EXISTS voip_phost_crepl_trig;
@ -139,6 +141,9 @@ SET autocommit=0;
UPDATE lcr_gw SET id = flags WHERE flags != 0;
UPDATE lcr_gw SET flags = 0;
ALTER TABLE lcr_gw
DROP CONSTRAINT IF EXISTS `lcr_gw_id_ref`;
ALTER TABLE lcr_gw
ADD CONSTRAINT `lcr_gw_id_ref` FOREIGN KEY (`id`) REFERENCES `provisioning`.`voip_peer_hosts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
Loading…
Cancel
Save