refs #6965 Modify firstEditorFk NULL
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Ivan Mas 2024-05-16 13:15:55 +02:00
parent c15f9b13f2
commit 993dd0d8bd
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ UPDATE vn.route
ALTER TABLE vn.route ALTER TABLE vn.route
ADD CONSTRAINT route_vehicleFk FOREIGN KEY (vehicleFk) REFERENCES vn.vehicle(id); ADD CONSTRAINT route_vehicleFk FOREIGN KEY (vehicleFk) REFERENCES vn.vehicle(id);
ALTER TABLE vn.route
MODIFY COLUMN firstEditorFk int(10) unsigned NULL;
UPDATE vn.route UPDATE vn.route
SET firstEditorFk = NULL SET firstEditorFk = NULL
WHERE firstEditorFk NOT IN (SELECT id FROM account.user); WHERE firstEditorFk NOT IN (SELECT id FROM account.user);