refactor: refs #7920 Fix version
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Guillermo Bonet 2024-11-15 07:51:37 +01:00
parent e344ae3bf2
commit e49285ace8
2 changed files with 4 additions and 4 deletions

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;