Elrond's suggestion: have set_current_migration execute after each migration run.

This commit is contained in:
Christopher Allan Webber 2012-12-09 12:12:07 -06:00
parent a589201714
commit a4eef7fe91

View File

@ -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