Fix database_current_version for when self.migration_data is None.
This commit is contained in:
parent
16d4dce9e9
commit
396f39c3e9
@ -97,6 +97,10 @@ class MigrationManager(object):
|
|||||||
if not self.migration_table.exists(self.database.bind):
|
if not self.migration_table.exists(self.database.bind):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
# Also return None if self.migration_data is None.
|
||||||
|
if self.migration_data is None:
|
||||||
|
return None
|
||||||
|
|
||||||
return self.migration_data.version
|
return self.migration_data.version
|
||||||
|
|
||||||
def set_current_migration(self, migration_number):
|
def set_current_migration(self, migration_number):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user