Fix of removal of a ForeignKey field in a migration in MySQL

https://code.djangoproject.com/ticket/22460