I cannot seem to get this right, I am trying to modify a field to be a foreign key, with cascading delete... what am i doing wrong?
ALTER TABLE my_table ADD CON
I'm still somehow missing here an answer with foreign column (foreign_field) explicitly specified:
foreign_field
ALTER TABLE my_table ADD CONSTRAINT my_fk FOREIGN KEY (my_field) REFERENCES my_foreign_table (foreign_field) ON DELETE CASCADE;