From bcf3b2f96bc8b876ca4b0c1d1882ce14a190f249 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Mon, 3 Mar 2025 15:02:35 -0800 Subject: [PATCH] fix: prevent future library versions from being opened --- tagstudio/src/core/library/alchemy/library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tagstudio/src/core/library/alchemy/library.py b/tagstudio/src/core/library/alchemy/library.py index 8c819456..5219cdb3 100644 --- a/tagstudio/src/core/library/alchemy/library.py +++ b/tagstudio/src/core/library/alchemy/library.py @@ -367,7 +367,8 @@ class Library: if db_result: db_version = db_result.value # type: ignore - if db_version < 6: # NOTE: DB_VERSION 6 is the first supported SQL DB version. + # NOTE: DB_VERSION 6 is the first supported SQL DB version. + if db_version < 6 or db_version > LibraryPrefs.DB_VERSION.default: mismatch_text = Translations["status.library_version_mismatch"] found_text = Translations["status.library_version_found"] expected_text = Translations["status.library_version_expected"]