Skip to content

fix(storage): the legacy profile migration puts querya.db in last and whole (#1766) - #1787

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/legacy-profile-migration-atomic
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/legacy-profile-migration-atomic

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1766.

The migration is skipped once querya_desktop/querya.db exists, so an interrupted copy must never leave that file behind. Now every other file (including -wal / -shm) is copied first, and the database is copied under a temporary name and renamed into place. The legacy directory is not touched.

Not done: the issue's alternative of staging the whole tree in a sibling directory; the support directory already exists at this point, so it could not be renamed over it. Test: a copy that fails midway leaves no querya.db, and the next call migrates again. Not run locally, CI will.

@github-actions github-actions Bot added bug Something isn't working stability Theme parser epic label: stability storage Theme parser epic label: storage P2 Medium priority / Parity & Refactoring labels Oct 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 2209bd3 into dev Oct 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working P2 Medium priority / Parity & Refactoring stability Theme parser epic label: stability storage Theme parser epic label: storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant