Skip to content

Commit

Permalink
fix: remove redundant indices as they are already PK's
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Aug 9, 2022
1 parent ac53c8c commit b6b937f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions schemas/v1/8_vm_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b6b937f

Please sign in to comment.