localForage-cordovaSQLiteDriver icon indicating copy to clipboard operation
localForage-cordovaSQLiteDriver copied to clipboard

Bad `version` option to `openDatabase`

Open buu700 opened this issue 4 years ago • 0 comments

Using version 1.8.0 with localforage 1.7.1 and cordova-sqlite-storage 4.0.0, there is no data persistence between app restarts.

For whatever reason, commenting out this line fixes the problem: https://github.com/thgreasi/localForage-cordovaSQLiteDriver/blob/7a4ac27/lib/localforage-cordovasqlitedriver.js#L43

(I'd just submit a PR, but I don't know if there's some reason for that option or if it's maybe needed for other SQLite plugins/versions.)

buu700 avatar Jan 27 '20 23:01 buu700