aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-12-09 12:12:07 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-12-09 12:12:07 -0600
commita4eef7fe91918cb35c73f6df319308176e8e3129 (patch)
tree524a61a6addf5fdd1a4df09029e3582b72cb6d6b
parenta589201714cd15e8c0d5b59ca460f2dd7378fdc4 (diff)
downloadmediagoblin-a4eef7fe91918cb35c73f6df319308176e8e3129.tar.lz
mediagoblin-a4eef7fe91918cb35c73f6df319308176e8e3129.tar.xz
mediagoblin-a4eef7fe91918cb35c73f6df319308176e8e3129.zip
Elrond's suggestion: have set_current_migration execute after each migration run.
-rw-r--r--mediagoblin/db/sql/util.py2
1 files changed, 1 insertions, 1 deletions
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