fix(chainwatch): Correct index name on state_height view

This commit is contained in:
Mike Greenberg 2020-07-15 23:53:21 -04:00
parent 0cfddae711
commit 033cfa8f47

View File

@ -120,10 +120,10 @@ create unique index if not exists block_cid_uindex
create materialized view if not exists state_heights
as select distinct height, parentstateroot from blocks;
create index if not exists state_heights_index
create index if not exists state_heights_height_index
on state_heights (height);
create index if not exists state_heights_height_index
create index if not exists state_heights_parentstateroot_index
on state_heights (parentstateroot);
`); err != nil {
return err