MySQL Creating tables with Foreign Keys giving errno: 150
These conditions must be satisfied to not get error 150 re ALTER TABLE ADD FOREIGN KEY: The Parent table must exist before you define a foreign key to reference it. You must define the tables in the right order: Parent table first, then the Child table. If both tables references each other, you must create … Read more