8713-testToMaster #3523

Merged
alexm merged 383 commits from 8713-testToMaster into master 2025-03-04 06:52:15 +00:00
1 changed files with 6 additions and 8 deletions
Showing only changes of commit 21d9369250 - Show all commits

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`,