migrations_to_run here a list, so no reason to call it
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 23:26:23 +0000 (17:26 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 23:26:23 +0000 (17:26 -0600)
mediagoblin/db/sql/util.py

index a7f5fedf99cecf33e86eb84f40ad1030303e4c70..17c8bf8a549813eaa81ff01315e707c3b55fcf23 100644 (file)
@@ -213,7 +213,7 @@ class MigrationManager(object):
         if migrations_to_run:
             self.printer(
                 u'~> Updating %s:\n' % self.name_for_printing())
-            for migration_number, migration_func in migrations_to_run():
+            for migration_number, migration_func in migrations_to_run:
                 self.printer(
                     u'   + Running migration %s, "%s"... ' % (
                         migration_number, migration_func.func_name))