mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-28 22:01:24 +00:00
feat: swap IDs in tag_parents table; bump DB to v100
commit c1346e7df36b137cf88be284a96329fee9605a6a Author: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Sat Aug 23 18:04:58 2025 -0700 docs: update DB v100 with tag_parents flip commit 7e5d9381759b000533c809df9d9bc4f9d984e363 Author: HeikoWasTaken <heikowastaken@protonmail.com> Date: Sun Aug 24 00:31:21 2025 +0100 fix: swap IDs in parent_tags DB table (#998) * fix: reorder child and parent IDs in TagParent constructor call * feat: add db10 migration * fix: SQL query returning parent IDs instead of children IDs * fix: stop assigning child tags as parents * fix: select and remove parent tags, instead of child tags * test/fix: correctly reorder child/parent args in broken test * fix: migrate json subtags as parent tags, instead of child tags (I see where it went wrong now lol) * fix: query parent tags instead of children * refactor: scooching this down below db9 migrations * test: add DB10 migration test --------- Co-authored-by: heiko <heiko_was_taken@protonmail.com> commit 1ce02699ad9798800f9d98832b2a6377e3d79ed4 Author: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Sat Aug 23 14:47:39 2025 -0700 feat: add db minor versioning, bump to 100
This commit is contained in:
BIN
tests/fixtures/empty_libraries/DB_VERSION_100/.TagStudio/ts_library.sqlite
vendored
Normal file
BIN
tests/fixtures/empty_libraries/DB_VERSION_100/.TagStudio/ts_library.sqlite
vendored
Normal file
Binary file not shown.
Binary file not shown.
@@ -79,7 +79,7 @@ def test_build_tag_panel_set_parent_tags(library, generate_tag):
|
||||
assert parent
|
||||
assert child
|
||||
|
||||
library.add_parent_tag(child.id, parent.id)
|
||||
library.add_parent_tag(parent.id, child.id)
|
||||
|
||||
child = library.get_tag(child.id)
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ EMPTY_LIBRARIES = "empty_libraries"
|
||||
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_7")),
|
||||
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_8")),
|
||||
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_9")),
|
||||
str(Path(CWD.parent / FIXTURES / EMPTY_LIBRARIES / "DB_VERSION_100")),
|
||||
],
|
||||
)
|
||||
def test_library_migrations(path: str):
|
||||
|
||||
Reference in New Issue
Block a user