database index fix

This commit is contained in:
Lex Berezhny 2018-10-09 23:58:32 -04:00
parent ad13282494
commit f898bb3d0e
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ class SQLiteStorage:
timestamp integer,
primary key (sd_hash, reflector_address)
);
""" + WalletDatabase.CREATE_TABLES_QUERY
"""
def __init__(self, db_dir, reactor=None):
if not reactor:

View file

@ -22,7 +22,7 @@ class WalletDatabase(BaseDatabase):
is_buy boolean not null default 0,
is_sell boolean not null default 0
);
create index txo_claim_id_idx on txo (claim_id);
create index if not exists txo_claim_id_idx on txo (claim_id);
"""
CREATE_TABLES_QUERY = (