Making alembic happen with python 3 only... for now.

We want to make sure it works nicely first.
This commit is contained in:
Christopher Allan Webber 2014-09-22 14:05:36 -05:00
parent a6252cbf21
commit c2059c4a74

View File

@ -16,6 +16,7 @@
import logging
import six
from sqlalchemy.orm import sessionmaker
from mediagoblin.db.open import setup_connection_and_db_from_config
@ -125,6 +126,10 @@ def run_dbupdate(app_config, global_config):
db = setup_connection_and_db_from_config(app_config, migrations=True)
# Run the migrations
run_all_migrations(db, app_config, global_config)
# TODO: Make this happen regardless of python 2 or 3 once ensured
# to be "safe"!
if six.PY3:
run_alembic_migrations(db, app_config, global_config)