Fixed MySql provider not setting foreign key constraints properly