refs #6965 Add Fk vehicleFk firstEditorFk #2433

Merged
ivanm merged 5 commits from 6965-AddFkRoute-vehicleFk-firstEditorFk into dev 2024-05-16 11:41:32 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 993dd0d8bd - Show all commits

View File

@ -5,6 +5,9 @@ UPDATE vn.route
ALTER TABLE vn.route
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
SET firstEditorFk = NULL
WHERE firstEditorFk NOT IN (SELECT id FROM account.user);
ivanm marked this conversation as resolved Outdated

Apuntar a account.user en vez de a vn.worker

Apuntar a account.user en vez de a vn.worker