From b6b937f3321d11ce7dd4c8e2b00780093f7514ae Mon Sep 17 00:00:00 2001 From: frrist Date: Tue, 9 Aug 2022 13:36:35 -0700 Subject: [PATCH] fix: remove redundant indices as they are already PK's --- schemas/v1/8_vm_messages.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/schemas/v1/8_vm_messages.go b/schemas/v1/8_vm_messages.go index 810de2517..d671e0a9d 100644 --- a/schemas/v1/8_vm_messages.go +++ b/schemas/v1/8_vm_messages.go @@ -21,8 +21,6 @@ func init() { ); ALTER TABLE ONLY {{ .SchemaName | default "public"}}.vm_messages ADD CONSTRAINT vm_messages_pkey PRIMARY KEY (height, state_root, cid, source); CREATE INDEX vm_messages_height_idx ON {{ .SchemaName | default "public"}}.vm_messages USING BTREE (height); -CREATE INDEX vm_messages_cid_idx ON {{ .SchemaName | default "public"}}.vm_messages USING HASH (cid); -CREATE INDEX vm_messages_source_idx ON {{ .SchemaName | default "public"}}.vm_messages USING HASH (source); CREATE INDEX vm_messages_from_idx ON {{ .SchemaName | default "public"}}.vm_messages USING HASH ("from"); CREATE INDEX vm_messages_to_idx ON {{ .SchemaName | default "public"}}.vm_messages USING HASH ("to"); CREATE INDEX vm_messages_actor_code_method_idx ON {{ .SchemaName | default "public"}}.vm_messages USING BTREE (actor_code, method);