ichthyosaurus / harbour-expenditure

An app for splitting bills in different currencies among groups for SailfishOS.
1 stars 1 forks source link

Database migration error #3

Open ziel-los opened 2 weeks ago

ziel-los commented 2 weeks ago

Hi ichthyosaurus,

When starting the app from terminal, I get the following messages:

[D] getDatabase:80 - initializing database... [D] doInit:259 - migrating database to version 0.7 [C] doInit:275 - fatal: failed to upgrade database version from 0.6 to 0.7 [C] doInit:277 - exception: Error: no such table: exchange_rates_table Unable to execute statement [C] doInit:288 - fatal: expected database version 1 but loaded database has version 0.6 [C] getDatabase:75 - database is not available, check previous logs [W] unknown:76 - file:///usr/share/harbour-expenditure/qml/js/storage_helper.js:76: database is not available, check previous logs

The app is not useable. Input is not stored, settings are not saved.

How to reset the app's configuration and database?

Best regards, Jörg

ichthyosaurus commented 2 weeks ago

I just released v1.1.0 that should fix this issue (https://github.com/ichthyosaurus/harbour-expenditure/commit/03a9a56c443727c8f05b239207e58ae6d81d20c8). Can you give it a try?

How to reset the app's configuration and database?

Maybe hold off on that until we know if the fix works. But if you want to, it simple: just delete (or rename) the folder ~/.local/share/org.tplabs/expenditure/QML/OfflineStorage/Databases/.

ziel-los commented 2 weeks ago

Thanks for the quick response, looking forward to the release!

ichthyosaurus commented 2 weeks ago

just in case you didn't see: you can get it on OpenRepos or here on Github, it's still waiting for approval in the official store