app.py and migrate.py must import migrations in order to load said migrations...
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Jul 2011 05:32:01 +0000 (00:32 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 14 Jul 2011 05:32:01 +0000 (00:32 -0500)
mediagoblin/app.py
mediagoblin/gmg_commands/migrate.py

index 7a6a1f33c7c4610a7dcf32dc98d048a35d97d4fa..1c38f778ad5f4aec1ba4ccc79dd6e9a2ac9c4bcc 100644 (file)
@@ -28,6 +28,9 @@ from mediagoblin.init.celery import setup_celery_from_config
 from mediagoblin.init import get_jinja_loader, get_staticdirector, \
     setup_global_and_app_config, setup_workbench
 
+# This MUST be imported so as to set up the appropriate migrations!
+from mediagoblin.db import migrations
+
 
 class MediaGoblinApp(object):
     """
index e8d43a1f791d1f6643b750a9cc264343c47d5d6f..94adc9e08434b6d3e04b27fe277857cc7c2f972c 100644 (file)
 
 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(