aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/mongosql.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/gmg_commands/mongosql.py')
-rw-r--r--mediagoblin/gmg_commands/mongosql.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/gmg_commands/mongosql.py b/mediagoblin/gmg_commands/mongosql.py
index 81a2830c..dd53f575 100644
--- a/mediagoblin/gmg_commands/mongosql.py
+++ b/mediagoblin/gmg_commands/mongosql.py
@@ -20,5 +20,9 @@ def mongosql_parser_setup(subparser):
def mongosql(args):
+ # First, make sure our mongo migrations are up to date...
+ from mediagoblin.gmg_commands.migrate import run_migrate
+ run_migrate(args.conf_file)
+
from mediagoblin.db.sql.convert import run_conversion
run_conversion(args.conf_file)