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
12 lines
170 B
PL/PgSQL
12 lines
170 B
PL/PgSQL
BEGIN;
|
|
|
|
ALTER TABLE blocks
|
|
DROP CONSTRAINT node_fk;
|
|
|
|
ALTER TABLE blocks
|
|
ADD CONSTRAINT node_fk
|
|
FOREIGN KEY (node_id)
|
|
REFERENCES nodes (id)
|
|
ON DELETE CASCADE;
|
|
|
|
COMMIT; |