forked from cerc-io/ipld-eth-server
13 lines
187 B
MySQL
13 lines
187 B
MySQL
|
BEGIN;
|
||
|
|
||
|
ALTER TABLE transactions
|
||
|
DROP CONSTRAINT fk_test;
|
||
|
|
||
|
ALTER TABLE transactions
|
||
|
ADD CONSTRAINT blocks_fk
|
||
|
FOREIGN KEY (block_id)
|
||
|
REFERENCES blocks (id)
|
||
|
ON DELETE CASCADE;
|
||
|
|
||
|
COMMIT;
|