ipld-eth-server/db/migrations/1509460207_add_block_id_to_transactions.up.sql
2017-11-06 13:12:57 -06:00

6 lines
140 B
SQL

ALTER TABLE transactions
ADD COLUMN block_id INTEGER NOT NULL,
ADD CONSTRAINT fk_test
FOREIGN KEY (block_id)
REFERENCES blocks (id)