distinguish between differential state/storage nodes and eventual ones

This commit is contained in:
Ian Norden
2020-07-01 13:44:04 -05:00
parent e2bcc06f8a
commit 0ab55ef9d8
6 changed files with 31 additions and 44 deletions
+13
View File
@@ -0,0 +1,13 @@
-- +goose Up
ALTER TABLE eth.state_cids
ADD COLUMN diff BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE eth.storage_cids
ADD COLUMN diff BOOLEAN NOT NULL DEFAULT FALSE;
-- +goose Down
ALTER TABLE eth.state_cids
DROP COLUMN diff;
ALTER TABLE eth.storage_cids
DROP COLUMN diff;
+4 -2
View File
@@ -413,7 +413,8 @@ CREATE TABLE eth.state_cids (
state_leaf_key character varying(66),
cid text NOT NULL,
state_path bytea,
node_type integer
node_type integer,
diff boolean DEFAULT false NOT NULL
);
@@ -447,7 +448,8 @@ CREATE TABLE eth.storage_cids (
storage_leaf_key character varying(66),
cid text NOT NULL,
storage_path bytea,
node_type integer
node_type integer,
diff boolean DEFAULT false NOT NULL
);