Skip to content
Permalink
Browse files

add outputsIsSerial index again

  • Loading branch information...
tonyofbyteball committed Mar 22, 2018
1 parent 0b326df commit f9ba0b540c45a3ee6c97f15eb66c68e390fc2929
Showing with 8 additions and 3 deletions.
  1. +1 −1 byteball-sqlite-light.sql
  2. +1 −1 byteball-sqlite.sql
  3. +6 −1 sqlite_migrations.js
@@ -748,4 +748,4 @@ CREATE TABLE original_addresses (
);


PRAGMA user_version=18;
PRAGMA user_version=19;
@@ -767,4 +767,4 @@ CREATE TABLE original_addresses (
);


PRAGMA user_version=18;
PRAGMA user_version=19;
@@ -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);
@@ -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);

0 comments on commit f9ba0b5

Please sign in to comment.
You can’t perform that action at this time.