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
152 B
PL/PgSQL
11 lines
152 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);
|
|
|
|
COMMIT; |