diff --git a/db/migrations/00004_create_eth_header_cids_table.sql b/db/migrations/00004_create_eth_header_cids_table.sql index 27e2291..450f442 100644 --- a/db/migrations/00004_create_eth_header_cids_table.sql +++ b/db/migrations/00004_create_eth_header_cids_table.sql @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS eth.header_cids ( parent_hash VARCHAR(66) NOT NULL, cid TEXT NOT NULL, td NUMERIC NOT NULL, - node_id VARCHAR(128) NOT NULL, + node_ids VARCHAR(128)[] NOT NULL, reward NUMERIC NOT NULL, state_root VARCHAR(66) NOT NULL, tx_root VARCHAR(66) NOT NULL, diff --git a/db/migrations/00012_create_postgraphile_comments.sql b/db/migrations/00012_create_postgraphile_comments.sql index f3ce2e6..6badbe5 100644 --- a/db/migrations/00012_create_postgraphile_comments.sql +++ b/db/migrations/00012_create_postgraphile_comments.sql @@ -3,7 +3,7 @@ COMMENT ON TABLE public.nodes IS E'@name NodeInfo'; COMMENT ON TABLE eth.transaction_cids IS E'@name EthTransactionCids'; COMMENT ON TABLE eth.header_cids IS E'@name EthHeaderCids'; COMMENT ON COLUMN public.nodes.node_id IS E'@name ChainNodeID'; -COMMENT ON COLUMN eth.header_cids.node_id IS E'@name EthNodeID'; +COMMENT ON COLUMN eth.header_cids.node_ids IS E'@name EthNodeIDs'; -- +goose Down @@ -11,4 +11,4 @@ COMMENT ON TABLE public.nodes IS NULL; COMMENT ON TABLE eth.transaction_cids IS NULL; COMMENT ON TABLE eth.header_cids IS NULL; COMMENT ON COLUMN public.nodes.node_id IS NULL; -COMMENT ON COLUMN eth.header_cids.node_id IS NULL; \ No newline at end of file +COMMENT ON COLUMN eth.header_cids.node_ids IS NULL; diff --git a/db/migrations/00014_create_cid_indexes.sql b/db/migrations/00014_create_cid_indexes.sql index 16b3829..93fa26b 100644 --- a/db/migrations/00014_create_cid_indexes.sql +++ b/db/migrations/00014_create_cid_indexes.sql @@ -43,7 +43,7 @@ CREATE INDEX storage_state_leaf_key_index ON eth.storage_cids USING btree (state CREATE INDEX storage_cid_index ON eth.storage_cids USING btree (cid); CREATE INDEX storage_mh_block_number_index ON eth.storage_cids USING btree (mh_key, block_number); CREATE INDEX storage_header_id_index ON eth.storage_cids USING btree (header_id); -CREATE INDEX storage_path_index ON eth.storage_cids USING btree (state_path); +CREATE INDEX storage_path_index ON eth.storage_cids USING btree (storage_path); CREATE INDEX storage_removed_index ON eth.storage_cids USING btree (removed); -- access list indexes