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
(cherry picked from commit 2234f05ddf)
changes/27/25627/1
Kirill Solomko 7 years ago
parent 25c3ede894
commit eecf250f2e

@ -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