-
Notifications
You must be signed in to change notification settings - Fork 211
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
Database (shares, albums, etc.) are lost on upgrade #317
Comments
Also, I think the indexing info is lost on update, too. |
yeah its kinda what it is. If the DB structure changes, the app just drops the DB (including shares). Proper upgrade/migration queries would needed to fix it. Last time I checked typeorm could not really deal with it by default and I do not have the time fixing it. If you find this annoying, use releases ( |
more precisely, if this number changes pigallery2/src/common/DataStructureVersion.ts Lines 1 to 4 in f2ab96f
, you loose your DB: pigallery2/src/backend/model/database/sql/SQLConnection.ts Lines 154 to 179 in f2ab96f
|
Update Docker README.md #317 to reflect possible data loss on version update.
I looked at the code, and it appears, that even if I use LATEST tag, the DB would drop too (if DataStructureVersion gets incremented). It just would do it less frequently. Right? |
unfortunately, yes. There are no upgrade scripts implemented. |
I renamed the issue to better reflect the actual problem and added a note in the docker README.md so it will catch less people off-guard a6dc01b. |
closing this due to inactivity. Feel free to reopen if you think otherwise. |
Describe the bug
I'm running piGallery2 via Docker.
DB mounted to the host:
Every time I pull new version of the image and restart the container - all my shares are lost.
I can't point to exact builds
Now I'm on commit f2ab96f.
I'll recreate few shares now and we'll try later with another version in a few days again.
Can the issue be because I'm using nightly builds? Will shares be preserved if I use LATEST tag for Docker image instead?
The text was updated successfully, but these errors were encountered: