Skip to content

Commit f1503f7

Browse files
committed
fix: bump db version to 300, since it is a breaking change
1 parent d7b2a5e commit f1503f7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/tagstudio/core/library/alchemy/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
DB_VERSION_CURRENT_KEY: str = "CURRENT"
1111
DB_VERSION_INITIAL_KEY: str = "INITIAL"
12-
DB_VERSION: int = 203
12+
DB_VERSION: int = 300
1313

1414
TAG_CHILDREN_QUERY = text("""
1515
WITH RECURSIVE ChildTags AS (

src/tagstudio/core/library/alchemy/library.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ def open_sqlite_library(
569569
(self.__apply_db200_migration, 200, None), # changes: field tables
570570
(self.__apply_db201_migration, 201, 200), # changes: field tables
571571
(self.__apply_db202_migration, 202, None), # changes: tag_parents
572-
(self.__apply_db203_migration, 203, None), # changes: deletes folders
572+
(self.__apply_db300_migration, 300, None), # changes: deletes folders
573573
]
574574
for migration, v, iv in migrations:
575575
if loaded_db_version < v and (iv is None or initial_db_version < iv):
@@ -876,7 +876,7 @@ def __apply_db202_migration(self, session: Session, library_dir: Path):
876876
session.flush()
877877
logger.info("[Library][Migration][202] Verified TagParent table data")
878878

879-
def __apply_db203_migration(self, session: Session, library_dir: Path):
879+
def __apply_db300_migration(self, session: Session, library_dir: Path):
880880
## remove folder_id column from entries table
881881
# create new table in the desired scheme (without folder_id column)
882882
session.execute(
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)