8144-devToTest_2448 #3216
|
@ -9,7 +9,7 @@ ALTER TABLE vn.itemShelving DROP FOREIGN KEY itemShelving_fk2,
|
||||||
MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
||||||
|
|
||||||
UPDATE vn.itemShelving ish
|
UPDATE vn.itemShelving ish
|
||||||
JOIN tItemShelving tish ON tish.id = ish.id
|
JOIN tmp.tItemShelving tish ON tish.id = ish.id
|
||||||
SET ish.shelvingFk = tish.shelvingFk;
|
SET ish.shelvingFk = tish.shelvingFk;
|
||||||
|
|
||||||
DROP TEMPORARY TABLE tmp.tItemShelving;
|
DROP TEMPORARY TABLE tmp.tItemShelving;
|
||||||
|
|
|
@ -8,7 +8,7 @@ CREATE OR REPLACE TEMPORARY TABLE tmp.tItemShelvingLog
|
||||||
ALTER TABLE vn.itemShelvingLog MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
ALTER TABLE vn.itemShelvingLog MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
||||||
|
|
||||||
UPDATE vn.itemShelvingLog ishl
|
UPDATE vn.itemShelvingLog ishl
|
||||||
JOIN tItemShelvingLog tishl ON tishl.id = ishl.id
|
JOIN tmp.tItemShelvingLog tishl ON tishl.id = ishl.id
|
||||||
SET ishl.shelvingFk = tishl.shelvingFk;
|
SET ishl.shelvingFk = tishl.shelvingFk;
|
||||||
|
|
||||||
DROP TEMPORARY TABLE tmp.tItemShelvingLog;
|
DROP TEMPORARY TABLE tmp.tItemShelvingLog;
|
||||||
|
|
Loading…
Reference in New Issue