8144-devToTest_2448 #3216

Merged
alexm merged 256 commits from 8144-devToTest_2448 into test 2024-11-19 07:36:04 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit e49285ace8 - Show all commits

View File

@ -1,4 +1,4 @@
CREATE OR REPLACE TEMPORARY TABLE tItemShelving CREATE OR REPLACE TEMPORARY TABLE tmp.tItemShelving
(PRIMARY KEY (id)) (PRIMARY KEY (id))
ENGINE = MEMORY ENGINE = MEMORY
SELECT ish.id, s.id shelvingFk SELECT ish.id, s.id shelvingFk
@ -12,7 +12,7 @@ UPDATE vn.itemShelving ish
JOIN tItemShelving tish ON tish.id = ish.id JOIN tItemShelving tish ON tish.id = ish.id
SET ish.shelvingFk = tish.shelvingFk; SET ish.shelvingFk = tish.shelvingFk;
DROP TEMPORARY TABLE tItemShelving; DROP TEMPORARY TABLE tmp.tItemShelving;
ALTER TABLE vn.itemShelving ALTER TABLE vn.itemShelving
ADD CONSTRAINT itemShelving_shelving_FK FOREIGN KEY (shelvingFk) REFERENCES vn.shelving(id) ADD CONSTRAINT itemShelving_shelving_FK FOREIGN KEY (shelvingFk) REFERENCES vn.shelving(id)

View File

@ -1,4 +1,4 @@
CREATE OR REPLACE TEMPORARY TABLE 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
@ -11,4 +11,4 @@ UPDATE vn.itemShelvingLog ishl
JOIN tItemShelvingLog tishl ON tishl.id = ishl.id JOIN tItemShelvingLog tishl ON tishl.id = ishl.id
SET ishl.shelvingFk = tishl.shelvingFk; SET ishl.shelvingFk = tishl.shelvingFk;
DROP TEMPORARY TABLE tItemShelvingLog; DROP TEMPORARY TABLE tmp.tItemShelvingLog;