New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] database migration fails #1849
Comments
This is probably a bug in the conditional migration code, it's somehow missing that there are still duplicates in the table before running. @gitgiggety |
Is there something I can do to fix it? |
This is a different bug. The conditional code is for migrating where there are non-unique checksums not paths. Essentially, this is a database corruption. I suspect the bug that introduced this corruption will be fixed once that migration actually completes, but we need to fix the corruption first. @seeshepard you're going to need to fix this manually with sqlite. To see the duplicate images, you'll need to run this SQL:
Once you have these, you can use the previous version of stash to delete the extra entries you don't want. Alternatively, you can just delete all duplicates (you won't get to choose what image entry to keep) by running this query:
Make a backup of your |
Thank you, it worked like a charm! For anyone in the future that runs into a similar problem here's a quick step by step:
|
Describe the bug
When trying to update stash from version 0.9 to 0.10 schema migration fails with the error
To Reproduce
Performing a schema migration, in my case from version 25 to 28.
Screenshots
Stash Version: (from Settings -> About):
Newest released - v0.10.0 f4b7838
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: