Skip to content

Commit

Permalink
add outputsIsSerial index again
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofbyteball committed Mar 22, 2018
1 parent 0b326df commit f9ba0b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion byteball-sqlite-light.sql
Expand Up @@ -748,4 +748,4 @@ CREATE TABLE original_addresses (
);


PRAGMA user_version=18;
PRAGMA user_version=19;
2 changes: 1 addition & 1 deletion byteball-sqlite.sql
Expand Up @@ -767,4 +767,4 @@ CREATE TABLE original_addresses (
);


PRAGMA user_version=18;
PRAGMA user_version=19;
7 changes: 6 additions & 1 deletion sqlite_migrations.js
Expand Up @@ -4,7 +4,7 @@ var eventBus = require('./event_bus.js');
var constants = require("./constants.js");
var conf = require("./conf.js");

var VERSION = 18;
var VERSION = 19;

var async = require('async');
var bCordova = (typeof window === 'object' && window.cordova);
Expand Down Expand Up @@ -200,6 +200,11 @@ function migrateDb(connection, onDone){
}
else
cb();
},
function(cb){
if (version < 19)
connection.addQuery(arrQueries, "CREATE INDEX IF NOT EXISTS outputsIsSerial ON outputs(is_serial)");
cb();
}
], function(){
connection.addQuery(arrQueries, "PRAGMA user_version="+VERSION);
Expand Down

0 comments on commit f9ba0b5

Please sign in to comment.