forked from cerc-io/ipld-eth-server
12 lines
220 B
SQL
12 lines
220 B
SQL
-- +goose Up
|
|
ALTER TABLE transactions
|
|
ADD COLUMN block_id INTEGER NOT NULL,
|
|
ADD CONSTRAINT fk_test
|
|
FOREIGN KEY (block_id)
|
|
REFERENCES blocks (id);
|
|
|
|
|
|
-- +goose Down
|
|
ALTER TABLE transactions
|
|
DROP COLUMN block_id;
|