forked from cerc-io/ipld-eth-server
266c9587c8
* Update Block w/ newest Block * Add cascading delete to blocks and transactions tables * Add handling for new conflicting blocks * Command line version of sliding window n behind HEAD
11 lines
168 B
PL/PgSQL
11 lines
168 B
PL/PgSQL
BEGIN;
|
|
|
|
ALTER TABLE transactions
|
|
DROP CONSTRAINT blocks_fk;
|
|
|
|
ALTER TABLE transactions
|
|
ADD CONSTRAINT fk_test
|
|
FOREIGN KEY (block_id)
|
|
REFERENCES blocks (id);
|
|
|
|
COMMIT; |