11 lines
168 B
MySQL
11 lines
168 B
MySQL
|
BEGIN;
|
||
|
|
||
|
ALTER TABLE transactions
|
||
|
DROP CONSTRAINT blocks_fk;
|
||
|
|
||
|
ALTER TABLE transactions
|
||
|
ADD CONSTRAINT fk_test
|
||
|
FOREIGN KEY (block_id)
|
||
|
REFERENCES blocks (id);
|
||
|
|
||
|
COMMIT;
|