ipld-eth-state-snapshot/db/migrations/00002_create_nodes_table.sql

13 lines
281 B
MySQL
Raw Permalink Normal View History

2020-07-16 15:34:56 +00:00
-- +goose Up
CREATE TABLE nodes (
id SERIAL PRIMARY KEY,
client_name VARCHAR,
genesis_block VARCHAR(66),
network_id VARCHAR,
node_id VARCHAR(128),
CONSTRAINT node_uc UNIQUE (genesis_block, network_id, node_id)
);
-- +goose Down
DROP TABLE nodes;