refs #6965 Points to user instead of worker
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
9d7184ed7b
commit
9ed90412de
|
@ -7,7 +7,7 @@ ADD CONSTRAINT route_vehicleFk FOREIGN KEY (vehicleFk) REFERENCES vn.vehicle(id)
|
|||
|
||||
UPDATE vn.route
|
||||
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
|
||||
ADD CONSTRAINT route_firstEditorFk FOREIGN KEY (firstEditorFk) REFERENCES vn.worker(id);
|
||||
ADD CONSTRAINT route_firstEditorFk FOREIGN KEY (firstEditorFk) REFERENCES account.user(id);
|
||||
|
|
Loading…
Reference in New Issue