ipld-eth-server/db/migrations/00011_add_nodes_table.sql
2019-02-26 00:52:54 -06:00

11 lines
214 B
SQL

-- +goose Up
CREATE TABLE nodes (
id SERIAL PRIMARY KEY,
genesis_block VARCHAR(66),
network_id NUMERIC,
CONSTRAINT node_uc UNIQUE (genesis_block, network_id)
);
-- +goose Down
DROP TABLE nodes;