mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 14:44:42 +00:00
default migrations value to -1
+ tiny fixes
This commit is contained in:
1 parent
50aa971972
commit
d9688455fb
5 files changed
+20
-20
No files matched your search
@@ -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