fix db migration
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 17 Feb 2021 07:14:33 +0000 (08:14 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 17 Feb 2021 07:14:33 +0000 (08:14 +0100)
music_assistant/constants.py
music_assistant/helpers/migration.py

index 056d7d5dc631b6b37f0c5e055141ac1766f46f37..e995e0a331994882cf9c01478fb7b9fb09fbc17b 100755 (executable)
@@ -1,6 +1,6 @@
 """All constants for Music Assistant."""
 
-__version__ = "0.1.0"
+__version__ = "0.1.1"
 REQUIRED_PYTHON_VER = "3.7"
 
 # configuration keys/attributes
index a82931ccd52b89d3c143478472f934221321af16..fa813289d2f0bdb992271e885ca39c95a0eb83a4 100644 (file)
@@ -20,8 +20,8 @@ async def check_migrations(mass: MusicAssistant):
     prev_version = packaging.version.parse(mass.config.stored_config.get("version", ""))
 
     # perform version specific migrations
-    if not is_fresh_setup and prev_version < packaging.version.parse("0.0.70"):
-        await run_migration_0070(mass)
+    if not is_fresh_setup and prev_version < packaging.version.parse("0.1.1"):
+        await run_migration_1(mass)
 
     # store version in config
     mass.config.stored_config["version"] = app_version
@@ -40,9 +40,9 @@ async def check_migrations(mass: MusicAssistant):
     await create_db_tables(mass.database.db_file)
 
 
-async def run_migration_0070(mass: MusicAssistant):
-    """Run migration for version 0.0.70."""
-    # 0.0.70 introduced major changes to all data models and db structure
+async def run_migration_1(mass: MusicAssistant):
+    """Run migration for version 0.1.1."""
+    # 0.1.0 introduced major changes to all data models and db structure
     # a full refresh of data is unavoidable
     data_path = mass.config.data_path
     tracks_loudness = []