refs #6965 Add Fk vehicleFk firstEditorFk #2433
|
@ -7,7 +7,7 @@ ADD CONSTRAINT route_vehicleFk FOREIGN KEY (vehicleFk) REFERENCES vn.vehicle(id)
|
||||||
|
|
||||||
UPDATE vn.route
|
UPDATE vn.route
|
||||||
SET firstEditorFk = NULL
|
SET firstEditorFk = NULL
|
||||||
WHERE firstEditorFk NOT IN (SELECT id FROM vn.worker);
|
WHERE firstEditorFk NOT IN (SELECT id FROM account.user);
|
||||||
|
|
||||||
ALTER TABLE vn.route
|
ALTER TABLE vn.route
|
||||||
ADD CONSTRAINT route_firstEditorFk FOREIGN KEY (firstEditorFk) REFERENCES vn.worker(id);
|
ADD CONSTRAINT route_firstEditorFk FOREIGN KEY (firstEditorFk) REFERENCES account.user(id);
|
||||||
ivanm marked this conversation as resolved
Outdated
|
|||||||
|
|
Loading…
Reference in New Issue
Apuntar a account.user en vez de a vn.worker