Fix bad drop of foreign key in MySQL