mongo->sql conversion script now runs mongo migrations first, just in case
[mediagoblin.git] / mediagoblin / gmg_commands / __init__.py
index 04187ff2aeeb9170c5b767f719d5267cf7708eaf..054e2616f79519439763837637490da9db16a45d 100644 (file)
@@ -1,5 +1,5 @@
 # GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 MediaGoblin contributors.  See AUTHORS.
+# Copyright (C) 2011, 2012 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -53,6 +53,14 @@ SUBCOMMAND_MAP = {
         'setup': 'mediagoblin.gmg_commands.import_export:import_export_parse_setup',
         'func': 'mediagoblin.gmg_commands.import_export:env_import',
         'help': 'Exports the data for this MediaGoblin instance'},
+    'dbupdate': {
+        'setup': 'mediagoblin.gmg_commands.dbupdate:dbupdate_parse_setup',
+        'func': 'mediagoblin.gmg_commands.dbupdate:dbupdate',
+        'help': 'Set up or update the SQL database'},
+    'convert_mongo_to_sql': {
+        'setup': 'mediagoblin.gmg_commands.mongosql:mongosql_parser_setup',
+        'func': 'mediagoblin.gmg_commands.mongosql:mongosql',
+        'help': 'Convert Mongo DB data to SQL DB data'},
     }