python - Django 1.7 Migrations hanging -
i have django migration trying apply. gets made fine (it's small, it's adding charfield
2 different models. when run actual migrate hangs (no failure, no success, sits).
through googling i've found other open connections can mess restarted db. db connect continuously running jobs , new queries sneak in right away. small, , last time tried restarting think able execute migrate before else. still nothing.
are there other known issues cause this?
at least in postgresql cannot modify tables (even if it's adding new columns) while there active transactions. easiest workaround to:
- run migration script (which hang)
- restart webserver/wsgi container
when restarting webserver open transactions aborted (assuming don't have background processes have transactions open), no transactions blocking table, migration finish.
Comments
Post a Comment