fix: refs #8172 Version fix
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2025-02-07 11:04:10 +01:00
parent 1a274648a7
commit 21d9369250
1 changed files with 6 additions and 8 deletions

View File

@ -10,14 +10,12 @@ ENGINE=InnoDB
DEFAULT CHARSET=utf8mb3
COLLATE=utf8mb3_unicode_ci;
UPDATE vn.parkingCoordinates pc
JOIN vn.parking p ON p.id = pc.parkingFk
SET pc.x = IFNULL(p.`column`, 0),
pc.y = IFNULL(p.`row`, 0),
pc.z = IFNULL(p.`floor`, 0)
WHERE p.`column` IS NOT NULL
OR p.`row` IS NOT NULL
OR p.`floor` IS NOT NULL;
INSERT INTO vn.parkingCoordinates (parkingFk, x, y, z)
SELECT id, `column`, `row`, `floor`
FROM vn.parking
WHERE `column` IS NOT NULL
OR `row` IS NOT NULL
OR `floor` IS NOT NULL;
ALTER TABLE vn.parking
DROP COLUMN `column`,