I'm using django 1.7 with a MySQL DB. I'm trying to run a migration that deletes a column from a table with 500K rows. When running the migration it hangs for an infinite amount of time.
When manually connecting to the DB, I can see that the migration worked (the column has been deleted). However the migration was not written to django_migrations
table. When looking at DB performance graphs, I see the spike made by the migration, and then back to normal levels.
What might be the cause for the hang? Am I missing something?
Update: here is the migration code
class Migration(migrations.Migration):
operations = [
migrations.RemoveField(
model_name='table_name',
name='column_name',
),
]