Move the uncompressed image size migration call outside of alembic, since it will sometimes deadlock with certain kinds of DBs (because alembic is running things inside a transaction)

This commit is contained in:
Joseph Schorr 2014-11-03 21:01:41 -05:00
parent 6adf4644b4
commit 29c30b336e
3 changed files with 28 additions and 18 deletions

View file

@ -3,3 +3,6 @@ set -e
# Run the database migration
PYTHONPATH=. venv/bin/alembic upgrade head
# Run the uncompressed size migration
PYTHONPATH=. venv/bin/python -m util.uncompressedsize