Switch postgres to a non-transactional DDL to allow us to use peewee to modify data in migrations: enterprise customers are running postgres migrations offline already. Move the image backfill script back to a migration since it will now work. Unify the interface to sending a DB URI to env.py for the migration script.
This commit is contained in:
parent
3815e9a293
commit
17fc72d262
6 changed files with 21 additions and 45 deletions
|
@ -2,7 +2,4 @@
|
|||
set -e
|
||||
|
||||
# Run the database migration
|
||||
PYTHONPATH=. venv/bin/alembic upgrade head
|
||||
|
||||
# Run the uncompressed size migration
|
||||
PYTHONPATH=. venv/bin/python -m util.uncompressedsize
|
||||
PYTHONPATH=. venv/bin/alembic upgrade head
|
Reference in a new issue