refactor: refs #7920 No changes in itemShelvingLog table
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e1a091535e
commit
a3945070f2
|
@ -1,6 +1,8 @@
|
||||||
|
/*
|
||||||
CREATE OR REPLACE TEMPORARY TABLE tmp.tItemShelvingLog
|
CREATE OR REPLACE TEMPORARY TABLE tmp.tItemShelvingLog
|
||||||
(PRIMARY KEY (id))
|
(PRIMARY KEY (id))
|
||||||
ENGINE = MEMORY
|
ENGINE = MEMORY
|
||||||
SELECT ishl.id, s.id shelvingFk
|
SELECT ishl.id, s.id shelvingFk
|
||||||
FROM vn.itemShelvingLog ishl
|
FROM vn.itemShelvingLog ishl
|
||||||
JOIN vn.shelving s ON s.code = ishl.shelvingFk COLLATE utf8mb3_unicode_ci;
|
JOIN vn.shelving s ON s.code = ishl.shelvingFk COLLATE utf8mb3_unicode_ci;
|
||||||
|
*/
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
ALTER TABLE vn.itemShelvingLog MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
-- ALTER TABLE vn.itemShelvingLog MODIFY COLUMN shelvingFk int(11) NOT NULL;
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
/*
|
||||||
UPDATE vn.itemShelvingLog ishl
|
UPDATE vn.itemShelvingLog ishl
|
||||||
JOIN tmp.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