Merge pull request #2125 from filecoin-project/fix/cw-state-heights-index

chainwatch: state_heights_uindex is not unique
This commit is contained in:
Łukasz Magiera 2020-06-24 14:55:42 +02:00 committed by GitHub
commit 7d9f9ba756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ 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 unique index if not exists state_heights_uindex
create index if not exists state_heights_index
on state_heights (height);
create index if not exists state_heights_height_index