updated schema
This commit is contained in:
parent
92cc8fbea3
commit
dd35277c86
49
schema.sql
49
schema.sql
@ -238,19 +238,6 @@ CREATE FUNCTION public.was_state_leaf_removed(key character varying, hash charac
|
||||
$$;
|
||||
|
||||
|
||||
--
|
||||
-- Name: access_list_elements; Type: TABLE; Schema: eth; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE eth.access_list_elements (
|
||||
block_number bigint NOT NULL,
|
||||
tx_id character varying(66) NOT NULL,
|
||||
index integer NOT NULL,
|
||||
address character varying(66),
|
||||
storage_keys character varying(66)[]
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: log_cids; Type: TABLE; Schema: eth; Owner: -
|
||||
--
|
||||
@ -458,14 +445,6 @@ COMMENT ON COLUMN public.nodes.node_id IS '@name ChainNodeID';
|
||||
ALTER TABLE ONLY public.goose_db_version ALTER COLUMN id SET DEFAULT nextval('public.goose_db_version_id_seq'::regclass);
|
||||
|
||||
|
||||
--
|
||||
-- Name: access_list_elements access_list_elements_pkey; Type: CONSTRAINT; Schema: eth; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY eth.access_list_elements
|
||||
ADD CONSTRAINT access_list_elements_pkey PRIMARY KEY (tx_id, index, block_number);
|
||||
|
||||
|
||||
--
|
||||
-- Name: header_cids header_cids_pkey; Type: CONSTRAINT; Schema: eth; Owner: -
|
||||
--
|
||||
@ -562,27 +541,6 @@ ALTER TABLE ONLY public.nodes
|
||||
ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: access_list_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX access_list_block_number_index ON eth.access_list_elements USING btree (block_number);
|
||||
|
||||
|
||||
--
|
||||
-- Name: access_list_element_address_index; Type: INDEX; Schema: eth; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX access_list_element_address_index ON eth.access_list_elements USING btree (address);
|
||||
|
||||
|
||||
--
|
||||
-- Name: access_list_storage_keys_index; Type: INDEX; Schema: eth; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX access_list_storage_keys_index ON eth.access_list_elements USING gin (storage_keys);
|
||||
|
||||
|
||||
--
|
||||
-- Name: header_block_number_index; Type: INDEX; Schema: eth; Owner: -
|
||||
--
|
||||
@ -842,13 +800,6 @@ CREATE INDEX uncle_header_id_index ON eth.uncle_cids USING btree (header_id);
|
||||
CREATE INDEX blocks_block_number_idx ON ipld.blocks USING btree (block_number DESC);
|
||||
|
||||
|
||||
--
|
||||
-- Name: access_list_elements ts_insert_blocker; Type: TRIGGER; Schema: eth; Owner: -
|
||||
--
|
||||
|
||||
CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON eth.access_list_elements FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();
|
||||
|
||||
|
||||
--
|
||||
-- Name: header_cids ts_insert_blocker; Type: TRIGGER; Schema: eth; Owner: -
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user