From a4eef7fe91918cb35c73f6df319308176e8e3129 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 9 Dec 2012 12:12:07 -0600 Subject: [PATCH] Elrond's suggestion: have set_current_migration execute after each migration run. --- mediagoblin/db/sql/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/db/sql/util.py b/mediagoblin/db/sql/util.py index c6d8562e..92866149 100644 --- a/mediagoblin/db/sql/util.py +++ b/mediagoblin/db/sql/util.py @@ -217,9 +217,9 @@ class MigrationManager(object): u' + Running migration %s, "%s"... ' % ( migration_number, migration_func.func_name)) migration_func(self.session) + self.set_current_migration() self.printer('done.\n') - self.set_current_migration() return u'migrated' # Otherwise return None. Well it would do this anyway, but -- 2.25.1