While creating the mysql database, I received an error that that fallback script failed and obviously the foreign key was not added. So here’s the solution:
Mysql expects every foreign key in database to be unique so no two foreign keys should have the same name.
I renamed the newly created foreign key and everything worked like a charm.