Eeek! Set the migration number to the current migration number being run!
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 9 Dec 2012 18:20:06 +0000 (12:20 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 9 Dec 2012 18:20:06 +0000 (12:20 -0600)
mediagoblin/db/sql/util.py

index 92866149476f87f29c6fd36edd2bb83bdbdee7b6..f6a3dc173b70be63c4852bba135ade30ed7a7adc 100644 (file)
@@ -217,7 +217,7 @@ class MigrationManager(object):
                     u'   + Running migration %s, "%s"... ' % (
                         migration_number, migration_func.func_name))
                 migration_func(self.session)
-                self.set_current_migration()
+                self.set_current_migration(migration_number)
                 self.printer('done.\n')
 
             return u'migrated'