-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Two more statements to check ( ON UPDATE [RESTRICT | CASCADE | SET NULL | NO ACTION | SET DEFAULT})
ALTER TABLE texto
ADD CONSTRAINT texto_autor_id_foreign
FOREIGN KEY (autor_id
) REFERENCES users
(id
) ON UPDATE CASCADE,
ADD CONSTRAINT texto_tipotexto_id_foreign
FOREIGN KEY (tipotexto_id
) REFERENCES tipotexto
(id
) ON UPDATE CASCADE
Encountered unexpected token: "UPDATE" "UPDATE"
at line 2, column 97.
ALTER TABLE texto_fichero
ADD CONSTRAINT texto_fichero_fichero_id_foreign
FOREIGN KEY (fichero_id
) REFERENCES fichero
(id
) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT texto_fichero_texto_id_foreign
FOREIGN KEY (texto_id
) REFERENCES texto
(id
) ON DELETE CASCADE ON UPDATE CASCADE
Encountered unexpected token: "ON" "ON"
at line 2, column 126.
Metadata
Metadata
Assignees
Labels
No labels