aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-07-14 00:32:01 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-07-14 00:32:01 -0500
commit90e342f90ffc59991e040645938521a0a5ba050d (patch)
treede40909ae6558be2e1a89e1d42a58c0fbf48e4f0 /mediagoblin/gmg_commands
parent5ebe69e5a0cdaf7e27d485624465834eb3132c13 (diff)
downloadmediagoblin-90e342f90ffc59991e040645938521a0a5ba050d.tar.lz
mediagoblin-90e342f90ffc59991e040645938521a0a5ba050d.tar.xz
mediagoblin-90e342f90ffc59991e040645938521a0a5ba050d.zip
app.py and migrate.py must import migrations in order to load said migrations...
Diffstat (limited to 'mediagoblin/gmg_commands')
-rw-r--r--mediagoblin/gmg_commands/migrate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/gmg_commands/migrate.py b/mediagoblin/gmg_commands/migrate.py
index e8d43a1f..94adc9e0 100644
--- a/mediagoblin/gmg_commands/migrate.py
+++ b/mediagoblin/gmg_commands/migrate.py
@@ -16,11 +16,13 @@
import sys
-from mediagoblin.db import migrations
from mediagoblin.db import util as db_util
from mediagoblin.db.open import setup_connection_and_db_from_config
from mediagoblin.init.config import read_mediagoblin_config
+# This MUST be imported so as to set up the appropriate migrations!
+from mediagoblin.db import migrations
+
def migrate_parser_setup(subparser):
subparser.add_argument(