8144-devToTest_2448 #3216
|
@ -9,7 +9,7 @@ ALTER TABLE vn.itemShelving DROP FOREIGN KEY itemShelving_fk2,
|
|||
MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
DROP TEMPORARY TABLE tmp.tItemShelvingLog;
|
||||
|
|
Loading…
Reference in New Issue