mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
default migrations value to -1
+ tiny fixes
This commit is contained in:
@@ -34,6 +34,11 @@ def apply_migrations():
|
||||
|
||||
version = MigrationManager.get_version()
|
||||
|
||||
# is clean install
|
||||
if version == -1:
|
||||
MigrationManager.set_version(len(migrations))
|
||||
return
|
||||
|
||||
if version != len(migrations):
|
||||
# run migrations after the previous migration version
|
||||
for migration in migrations[(version - 1) :]:
|
||||
|
||||
Reference in New Issue
Block a user