Skip to content
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 migration fail on 3->4 #36

Closed
rocketman768 opened this issue May 7, 2015 · 1 comment
Closed

Database migration fail on 3->4 #36

rocketman768 opened this issue May 7, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@rocketman768
Copy link
Member

Looks like the 2.1.0 table didn't have the 'repopulateChildrenOnNextStart' field in the settings table? If not, the 3->4 migration is wrong (it should not try to select that field from the oldsettings). Following is the error and contents of the settings table.

"ERROR: no such column: repopulateChildrenOnNextStart Unable to execute statement
QUERY: INSERT INTO settings (id,version,repopulateChildrenOnNextStart) SELECT 1, 4, repopulateChildrenOnNextStart FROM oldsettings"
ERROR: Database migration 3->4 failed

$ sqlite3 ~/.config/brewtarget/database.sqlite
SQLite version 3.8.7.1 2014-10-29 13:59:56
Enter ".help" for usage hints.
sqlite> select * from settings
...> ;
1|2.1.0

@rocketman768 rocketman768 added this to the v2.2.0 milestone May 7, 2015
@rocketman768 rocketman768 self-assigned this May 9, 2015
@rocketman768
Copy link
Member Author

The official 2.0.2 and 2.1.0 database both migrate successfully. Maybe there was a development version of the 2.1.0 database without repopulateChildrenOnNextStart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant