aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/mongosql.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-03-17 17:08:46 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-03-17 17:08:46 -0500
commit9e55431143e48d0ee923e5b6904f450ccf3ca903 (patch)
treefcf47626ee1f631ec1dc4b86d966e0c92abfb159 /mediagoblin/gmg_commands/mongosql.py
parent4a250dbddeeeb332bb1bd263daca0354172e7404 (diff)
downloadmediagoblin-9e55431143e48d0ee923e5b6904f450ccf3ca903.tar.lz
mediagoblin-9e55431143e48d0ee923e5b6904f450ccf3ca903.tar.xz
mediagoblin-9e55431143e48d0ee923e5b6904f450ccf3ca903.zip
mongo->sql conversion script now runs mongo migrations first, just in case
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)