mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-22 07:39:42 +00:00
Fix for wrong DB-Version on initializing DB
This commit is contained in:
parent
83fc6ec7d1
commit
e5ff3b4a35
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ function getDB() {
|
||||||
|
|
||||||
if (db.version == "") {
|
if (db.version == "") {
|
||||||
// Initialize an empty DB, Create the Table
|
// Initialize an empty DB, Create the Table
|
||||||
db.changeVersion("", "2",
|
db.changeVersion("", "3",
|
||||||
function(tx) {
|
function(tx) {
|
||||||
tx.executeSql("CREATE TABLE IF NOT EXISTS OTPStorage(title TEXT, secret TEXT, type TEXT DEFAULT 'TOPT', counter INTEGER DEFAULT 0, fav INTEGER DEFAULT 0, sort INTEGER DEFAULT 0);");
|
tx.executeSql("CREATE TABLE IF NOT EXISTS OTPStorage(title TEXT, secret TEXT, type TEXT DEFAULT 'TOPT', counter INTEGER DEFAULT 0, fav INTEGER DEFAULT 0, sort INTEGER DEFAULT 0);");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue