Correctly update database version

pull/1/head
Grégory Oestreicher 2017-02-27 14:17:21 +01:00
parent f96dbe70e6
commit 115d52f94a
1 changed files with 2 additions and 5 deletions

View File

@ -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" );
}
);
}