ancient tables

This commit is contained in:
Ian Norden 2020-09-14 08:51:48 -05:00
parent 07a7a534da
commit 531bc62eff
5 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS eth.ancient_headers (
block_number BIGINT UNIQUE NOT NULL,
header BYTEA NOT NULL
);
-- +goose Down
DROP TABLE eth.ancient_headers;

View File

@ -0,0 +1,8 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS eth.ancient_hashes (
block_number BIGINT UNIQUE NOT NULL,
hash BYTEA NOT NULL
);
-- +goose Down
DROP TABLE eth.ancient_hashes;

View File

@ -0,0 +1,8 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS eth.ancient_bodies (
block_number BIGINT UNIQUE NOT NULL,
body BYTEA NOT NULL
);
-- +goose Down
DROP TABLE eth.ancient_bodies;

View File

@ -0,0 +1,8 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS eth.ancient_receipts (
block_number BIGINT UNIQUE NOT NULL,
receipts BYTEA NOT NULL
);
-- +goose Down
DROP TABLE eth.ancient_receipts;

View File

@ -0,0 +1,8 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS eth.ancient_tds (
block_number BIGINT UNIQUE NOT NULL,
td BYTEA NOT NULL
);
-- +goose Down
DROP TABLE eth.ancient_tds;