Fix database_current_version for when self.migration_data is None.

This commit is contained in:
Christopher Allan Webber 2012-01-29 17:05:16 -06:00
parent 16d4dce9e9
commit 396f39c3e9

View File

@ -97,6 +97,10 @@ class MigrationManager(object):
if not self.migration_table.exists(self.database.bind):
return None
# Also return None if self.migration_data is None.
if self.migration_data is None:
return None
return self.migration_data.version
def set_current_migration(self, migration_number):