From 36dc66897637811fb73e0741b15be4742df52943 Mon Sep 17 00:00:00 2001 From: i-norden Date: Thu, 25 Nov 2021 11:16:13 -0600 Subject: [PATCH] proposed schema changes --- db/migrations/00004_create_eth_header_cids_table.sql | 2 +- db/migrations/00006_create_eth_transaction_cids_table.sql | 3 ++- .../00004_create_eth_header_cids_table.sql | 2 +- .../00006_create_eth_transaction_cids_table.sql | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/db/migrations/00004_create_eth_header_cids_table.sql b/db/migrations/00004_create_eth_header_cids_table.sql index a730675..4cff404 100644 --- a/db/migrations/00004_create_eth_header_cids_table.sql +++ b/db/migrations/00004_create_eth_header_cids_table.sql @@ -15,7 +15,7 @@ CREATE TABLE eth.header_cids ( bloom BYTEA NOT NULL, timestamp BIGINT NOT NULL, times_validated INTEGER NOT NULL DEFAULT 1, - base_fee NUMERIC + coinbase VARCHAR(66) NOT NULL, ); -- +goose Down diff --git a/db/migrations/00006_create_eth_transaction_cids_table.sql b/db/migrations/00006_create_eth_transaction_cids_table.sql index 918741d..5944294 100644 --- a/db/migrations/00006_create_eth_transaction_cids_table.sql +++ b/db/migrations/00006_create_eth_transaction_cids_table.sql @@ -8,7 +8,8 @@ CREATE TABLE eth.transaction_cids ( dst VARCHAR(66) NOT NULL, src VARCHAR(66) NOT NULL, tx_data BYTEA, - tx_type INTEGER + tx_type INTEGER, + value NUMERIC ); -- +goose Down diff --git a/db/pre_batch_processing_migrations/00004_create_eth_header_cids_table.sql b/db/pre_batch_processing_migrations/00004_create_eth_header_cids_table.sql index 2a4165f..9d956d9 100644 --- a/db/pre_batch_processing_migrations/00004_create_eth_header_cids_table.sql +++ b/db/pre_batch_processing_migrations/00004_create_eth_header_cids_table.sql @@ -15,7 +15,7 @@ CREATE TABLE eth.header_cids ( bloom BYTEA NOT NULL, timestamp BIGINT NOT NULL, times_validated INTEGER NOT NULL DEFAULT 1, - base_fee NUMERIC + coinbase VARCHAR(66) NOT NULL ); -- +goose Down diff --git a/db/pre_batch_processing_migrations/00006_create_eth_transaction_cids_table.sql b/db/pre_batch_processing_migrations/00006_create_eth_transaction_cids_table.sql index 3edf232..bbb1c3c 100644 --- a/db/pre_batch_processing_migrations/00006_create_eth_transaction_cids_table.sql +++ b/db/pre_batch_processing_migrations/00006_create_eth_transaction_cids_table.sql @@ -8,7 +8,8 @@ CREATE TABLE eth.transaction_cids ( dst VARCHAR(66) NOT NULL, src VARCHAR(66) NOT NULL, tx_data BYTEA, - tx_type INTEGER + tx_type INTEGER, + value NUMERIC ); -- +goose Down