diff --git a/db/migrations/00026_create_postgraphile_comments.sql b/db/migrations/00026_create_postgraphile_comments.sql index 567ba6b5..65711df0 100644 --- a/db/migrations/00026_create_postgraphile_comments.sql +++ b/db/migrations/00026_create_postgraphile_comments.sql @@ -1,8 +1,13 @@ -- +goose Up -COMMENT ON TABLE public.nodes IS E'@name NodeIDs'; +COMMENT ON TABLE public.nodes IS E'@name NodeInfo'; COMMENT ON TABLE btc.header_cids IS E'@name BtcHeaderCids'; COMMENT ON TABLE btc.transaction_cids IS E'@name BtcTransactionCids'; COMMENT ON TABLE btc.queue_data IS E'@name BtcQueueData'; COMMENT ON TABLE eth.transaction_cids IS E'@name EthTransactionCids'; COMMENT ON TABLE eth.header_cids IS E'@name EthHeaderCids'; -COMMENT ON TABLE eth.queue_data IS E'@name EthQueueData'; \ No newline at end of file +COMMENT ON TABLE eth.queue_data IS E'@name EthQueueData'; +COMMENT ON TABLE public.headers IS E'@name EthHeaders'; +COMMENT ON COLUMN public.headers.node_id IS E'@name EthNodeID'; +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 btc.header_cids.node_id IS E'@name BtcNodeID'; \ No newline at end of file diff --git a/db/migrations/00027_update_state_cids.sql b/db/migrations/00027_update_state_cids.sql index e4fdaa1b..daea294b 100644 --- a/db/migrations/00027_update_state_cids.sql +++ b/db/migrations/00027_update_state_cids.sql @@ -6,7 +6,7 @@ ALTER TABLE eth.state_cids DROP COLUMN leaf; ALTER TABLE eth.state_cids -ADD COLUMN node_type INTEGER NOT NULL; +ADD COLUMN node_type INTEGER; ALTER TABLE eth.state_cids ALTER COLUMN state_key DROP NOT NULL; diff --git a/db/migrations/00028_update_storage_cids.sql b/db/migrations/00028_update_storage_cids.sql index 937c22a6..385f2468 100644 --- a/db/migrations/00028_update_storage_cids.sql +++ b/db/migrations/00028_update_storage_cids.sql @@ -6,7 +6,7 @@ ALTER TABLE eth.storage_cids DROP COLUMN leaf; ALTER TABLE eth.storage_cids -ADD COLUMN node_type INTEGER NOT NULL; +ADD COLUMN node_type INTEGER; ALTER TABLE eth.storage_cids ALTER COLUMN storage_key DROP NOT NULL; diff --git a/db/migrations/maaaybe/00026_create_eth_headers_table.sql b/db/migrations/maaaybe/00026_create_eth_headers_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00027_create_eth_uncles_table.sql b/db/migrations/maaaybe/00027_create_eth_uncles_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00028_create_eth_transactions_table.sql b/db/migrations/maaaybe/00028_create_eth_transactions_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00029_create_eth_receipts_table.sql b/db/migrations/maaaybe/00029_create_eth_receipts_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00030_create_eth_logs_table.sql b/db/migrations/maaaybe/00030_create_eth_logs_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00031_create_eth_accounts_table.sql b/db/migrations/maaaybe/00031_create_eth_accounts_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00032_create_eth_storage_leaf_table.sql b/db/migrations/maaaybe/00032_create_eth_storage_leaf_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00033_create_btc_headers_table.sql b/db/migrations/maaaybe/00033_create_btc_headers_table.sql new file mode 100644 index 00000000..e69de29b diff --git a/db/migrations/maaaybe/00034_create_btc_transactions_table.sql.go b/db/migrations/maaaybe/00034_create_btc_transactions_table.sql.go new file mode 100644 index 00000000..f7436b85 --- /dev/null +++ b/db/migrations/maaaybe/00034_create_btc_transactions_table.sql.go @@ -0,0 +1 @@ +package maaaybe