ubuntu-calculator-app does no db upgrade to 0.1.1 on first start
Bug #1204702 reported by
wiesenth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
High
|
Riccardo Padovani |
Bug Description
... so that calculations cannot be stored because insertDate does not yet exist.
file://
Without digging into the details the following line in openDB() should fix it (untested):
- if (db.version == "0.1") {
+ if (db.version == "0.1" || db.version == "") {
Related branches
lp:~rpadovani/ubuntu-calculator-app/dbupgrade
- Gustavo Pichorim Boiko (community): Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
-
Diff: 79 lines (+46/-17)1 file modifiedStorage.qml (+46/-17)
Changed in ubuntu-calculator-app: | |
status: | New → In Progress |
assignee: | nobody → Riccardo Padovani (rpadovani) |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The Music app guys have got some code to do database schema migrations. It might be worth implementing the same as they're doing for the sake of code reusability.