ipld-eth-server/migrations/1509460207_add_block_id_to_transactions.up.sql
2017-10-31 10:36:37 -05: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)