I am trying to forward engineer my new schema onto my db server, but I can\'t figure out why I am getting this error. I\'ve tried to search for the answer here, but everyth
Reasons you may get a foreign key constraint error:
key
)Update:
ON DELETE SET NULL
is not defined to be null. So make sure that the column is set default null.Check these.