Correctly update database version
parent
f96dbe70e6
commit
115d52f94a
|
@ -896,11 +896,8 @@ function _updateSchema_v3( db )
|
||||||
tx.executeSql( "INSERT INTO articles_next SELECT * FROM articles" );
|
tx.executeSql( "INSERT INTO articles_next SELECT * FROM articles" );
|
||||||
tx.executeSql( "DROP TABLE articles" );
|
tx.executeSql( "DROP TABLE articles" );
|
||||||
tx.executeSql( "ALTER TABLE articles_next RENAME TO articles" );
|
tx.executeSql( "ALTER TABLE articles_next RENAME TO articles" );
|
||||||
},
|
|
||||||
function() {
|
db.changeVersion( db.version, "0.3" );
|
||||||
},
|
|
||||||
function() {
|
|
||||||
db.changeVersion( version, "0.3" );
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue