updated schema
This commit is contained in:
parent
29e2bd4e7b
commit
73a66dae8b
15
schema.sql
15
schema.sql
@ -67,7 +67,6 @@ CREATE TABLE eth.header_cids (
|
|||||||
bloom bytea NOT NULL,
|
bloom bytea NOT NULL,
|
||||||
"timestamp" bigint NOT NULL,
|
"timestamp" bigint NOT NULL,
|
||||||
mh_key text NOT NULL,
|
mh_key text NOT NULL,
|
||||||
times_validated integer DEFAULT 1 NOT NULL,
|
|
||||||
coinbase character varying(66) NOT NULL
|
coinbase character varying(66) NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -960,6 +959,13 @@ CREATE INDEX state_code_hash_index ON eth.state_cids USING btree (code_hash);
|
|||||||
CREATE INDEX state_header_id_index ON eth.state_cids USING btree (header_id);
|
CREATE INDEX state_header_id_index ON eth.state_cids USING btree (header_id);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: state_leaf_key_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE INDEX state_leaf_key_block_number_index ON eth.state_cids USING btree (state_leaf_key, block_number DESC);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: state_mh_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
-- Name: state_mh_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
||||||
--
|
--
|
||||||
@ -1009,6 +1015,13 @@ CREATE INDEX storage_cid_index ON eth.storage_cids USING btree (cid);
|
|||||||
CREATE INDEX storage_header_id_index ON eth.storage_cids USING btree (header_id);
|
CREATE INDEX storage_header_id_index ON eth.storage_cids USING btree (header_id);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: storage_leaf_key_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE INDEX storage_leaf_key_block_number_index ON eth.storage_cids USING btree (storage_leaf_key, block_number DESC);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: storage_mh_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
-- Name: storage_mh_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
||||||
--
|
--
|
||||||
|
Loading…
Reference in New Issue
Block a user