From 115d52f94aa6e6668fedcbebca54d0b48de1de8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Oestreicher?= Date: Mon, 27 Feb 2017 14:17:21 +0100 Subject: [PATCH] Correctly update database version --- qml/js/WallaBase.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qml/js/WallaBase.js b/qml/js/WallaBase.js index 71f78d9..800d331 100644 --- a/qml/js/WallaBase.js +++ b/qml/js/WallaBase.js @@ -896,11 +896,8 @@ function _updateSchema_v3( db ) tx.executeSql( "INSERT INTO articles_next SELECT * FROM articles" ); tx.executeSql( "DROP TABLE articles" ); tx.executeSql( "ALTER TABLE articles_next RENAME TO articles" ); - }, - function() { - }, - function() { - db.changeVersion( version, "0.3" ); + + db.changeVersion( db.version, "0.3" ); } ); }