ipld-eth-server/migrations/1509460207_add_block_id_to_transactions.up.sql

6 lines
140 B
MySQL
Raw Normal View History

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