fix: remove invalid child_id relationships from tag_parents (#1423)

* fix: remove invalid child_id relationships from tag_parents

* fix: use single statements in DB 102 & 202 migrations

* fix: remove unnecessary session.scalars() from migrations
This commit is contained in:
Travis Abendshien
2026-07-04 13:35:40 -07:00
committed by GitHub
parent 83473379db
commit 95e2fe7b44
4 changed files with 28 additions and 9 deletions

View File

@@ -193,3 +193,11 @@ Migration from the legacy JSON format is provided via a walkthrough when opening
- Drops `type_key` columns from `text_fields` and `datetime_fields` tables.
- Enforces column positions for `text_fields` and `datetime_fields` tables.
#### Version 202
| Added in Commit | Introduced in Release | Format |
| --------------- | ----------------------------------------------------------------------- | ------ |
| | [v9.6.1](https://github.com/TagStudioDev/TagStudio/releases/tag/v9.6.1) | SQLite |
- Applies repairs to the `tag_parents` table, removing rows that reference child tags that have been deleted.