You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15783_not_replicated.up

16 lines
363 B

USE kamailio;
SET autocommit=0;
SET sql_log_bin=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;
COMMIT;