2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Up
|
2017-10-31 15:36:37 +00:00
|
|
|
ALTER TABLE transactions
|
|
|
|
ADD COLUMN block_id INTEGER NOT NULL,
|
|
|
|
ADD CONSTRAINT fk_test
|
|
|
|
FOREIGN KEY (block_id)
|
2019-01-22 14:07:11 +00:00
|
|
|
REFERENCES blocks (id);
|
2019-01-22 12:15:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
-- +goose Down
|
|
|
|
ALTER TABLE transactions
|
2019-01-22 14:07:11 +00:00
|
|
|
DROP COLUMN block_id;
|