ipld-eth-server/db/migrations/1513192766_add_cascade_delete_to_transactions.down.sql

11 lines
168 B
MySQL
Raw Normal View History

BEGIN;
ALTER TABLE transactions
DROP CONSTRAINT blocks_fk;
ALTER TABLE transactions
ADD CONSTRAINT fk_test
FOREIGN KEY (block_id)
REFERENCES blocks (id);
COMMIT;