aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
diff options
context:
space:
mode:
authorBoris Bobrov <breton@cynicmansion.ru>2015-11-07 16:57:22 +0300
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-01-11 07:14:33 -0800
commit2b68834c44c76adcc692e7e8464e69da10420bdd (patch)
treea5290285c8ba2489a508af2656fb6be655195a7d /mediagoblin/gmg_commands
parent8da8c0ac2d1c20968165fcd0bc41d0b9f397593d (diff)
downloadmediagoblin-2b68834c44c76adcc692e7e8464e69da10420bdd.tar.lz
mediagoblin-2b68834c44c76adcc692e7e8464e69da10420bdd.tar.xz
mediagoblin-2b68834c44c76adcc692e7e8464e69da10420bdd.zip
Enable alembic as the main tool for migrations
Enable alembic for all migrations and limit the max number of sqlalchemy-migration migration. All new migrations must now be in Alembic!
Diffstat (limited to 'mediagoblin/gmg_commands')
-rw-r--r--mediagoblin/gmg_commands/dbupdate.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/mediagoblin/gmg_commands/dbupdate.py b/mediagoblin/gmg_commands/dbupdate.py
index 342ee7eb..da07c0a8 100644
--- a/mediagoblin/gmg_commands/dbupdate.py
+++ b/mediagoblin/gmg_commands/dbupdate.py
@@ -130,8 +130,7 @@ def run_dbupdate(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)
+ run_alembic_migrations(db, app_config, global_config)
def run_all_migrations(db, app_config, global_config):