TT#47713 fix table locks in 15251_not_replicated.up

* addresses an issue with the foreign key cannot be
      recreated as it relies on the lnp_providers table,
      affected since MariaDB 10.1.37

Change-Id: I785fcae727e975839c710f327bd10a659384c39c
changes/48/24848/4
Kirill Solomko 7 years ago committed by Alexander Lutay
parent 2585731e8f
commit 2234f05ddf

@ -9,7 +9,7 @@ WHERE
a.id < b.id
and (a.number = b.number and a.lnp_provider_id = b.lnp_provider_id);
LOCK TABLES lnp_numbers WRITE;
LOCK TABLES lnp_numbers WRITE, lnp_providers WRITE;
ALTER TABLE lnp_numbers DROP FOREIGN KEY `l_n_lnpproid_ref`;
CREATE UNIQUE INDEX l_n_lnpproidnumber_idx ON lnp_numbers (lnp_provider_id,number);

Loading…
Cancel
Save