-
Notifications
You must be signed in to change notification settings - Fork 134
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
Text Notes on Brew Days gone and do not work anymore #457
Comments
Ugh. This is a bad combo. The root cause here is that I did not include the notes column in the TableProperties for brewnotes. As part of the upgrade, I dropped two columns from brewnotes that were not used. On SQLite, dropping a column requires making a temporary table, copying the data from the old to the temp, dropping the old and renaming the temp. Since I didn't define the notes column, the notes weren't copied. I am fixing the code and will have a pull request later today. I am not sure if you lost data or not. I would think you have, but you seem to indicate the data is still there, just not available until you modify the table. If you didn't lose data, then my later PR will fix the remaining issues. If you did lose data, you will need to:
|
A simple bug with an unfortunate side effect. In defining the TableProperty for brewnotes, I didn't include the notes column. I am putting it back. The problem is that the upgrade from version 7 -> 8 drops two columns from brewnote. In sqlite, this means you create a temp table, copy the data from the old table to the temp, drop the old table and rename the temp. Because I didn't define the notes column, it was dropped as well. Anybody impacted will either need to find an existing backup that is still version 7 and copy that into place, or will need to manually add the column to the brewnote table. There is some indication that the data was preserved, even though the column was dropped?
Thanks for the instructions, and it's no stress to me I took a backup before trying the new version so I can roll back at any time. I would be happy to test the fix once it is ready. |
Before #453 I was able to store notes against each brew day.
After upgrading all the notes have gone blank. If I attempt to save a note, then an error is thrown and the application crashes:
Steps to reproduce:
Notes
boxThe schema of my brewnotes table is this:
If I add a
TEXT
field callednotes
to thebrewnote
table, then the contents of this field will show up in the Notes box, but if I attempt to add any of it or edit it, then the error above happens and Brewtarget crashes.Notes on recipes still appear to work.
The text was updated successfully, but these errors were encountered: