Fix database upgrade routine

This commit is contained in:
tophf 2015-07-30 23:34:33 +03:00
parent 0c30be4544
commit 21a138029d

View File

@ -69,7 +69,7 @@ function dbV14(d, error, done) {
function dbV15(d, error, done) { function dbV15(d, error, done) {
d.changeVersion(d.version, '1.5', function (t) { d.changeVersion(d.version, '1.5', function (t) {
t.executeSql('ALTER TABLE styles ADD COLUMN originalMd5 TEXT NULL;'); t.executeSql('ALTER TABLE styles ADD COLUMN originalMd5 TEXT NULL;');
}, error, function() { dbV15(d, error, done)}); }, error, function() { done(d); });
} }
function enableStyle(id, enabled) { function enableStyle(id, enabled) {