No way to restore default equipment
Bug #1109652 reported by
serandor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Brewtarget |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
This is sort of more of a feature request.
I accidentally deleted some of the default equipment. Now I can't figure out how to get it back. Reinstalling a new copy of brewtarget didn't do it either.
Thanks!
Changed in brewtarget: | |
status: | New → Confirmed |
importance: | Medium → Wishlist |
To post a comment you must log in.
There is a way. It isn't pretty, but there is a way.
Our shiny new database doesn't actually delete things, it simply marks them as deleted and you don't see them. If you want to recover the equipment, you can do the following: brewtarget by default
1. Close brewtarget
2. cd into your data directory, ~/.config/
3. Make a backup copy
4. No. I am not kidding. Make a backup copy.
5. Run these commands:
sqlite3 database.sqlite 'update table equipment set delete=0 where delete=1'
6. Start brewtarget
You should see all of your equipment back. If my SQL was awful, just restore the backup copy.
We will be implementing an undelete feature soon, but we just couldn't do it in this version.