fix: correct SQL syntax for deleting orphaned agencyIncoming records
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2025-01-27 16:37:17 +01:00
parent 8cbe64eedd
commit b8f9dc7ad7
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ DELETE ai from
`vn`.`agencyIncoming` ai
LEFT JOIN `vn`.`agencyMode` am ON
am.id = ai.agencyModeFk
WHERE am.id IS null
WHERE am.id IS null;
ALTER TABLE `vn`.`agencyIncoming`
ADD CONSTRAINT `fk_agencyIncoming_agencyMode`