Update watched addresses table to track gap filling

This commit is contained in:
Prathamesh Musale 2022-01-18 14:55:04 +05:30
parent e05942ec17
commit 61a4cea80b
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,9 @@
-- +goose Up
CREATE TABLE eth.watched_addresses (
address VARCHAR(66) PRIMARY KEY,
added_at BIGINT NOT NULL
address VARCHAR(66) PRIMARY KEY,
created_at BIGINT NOT NULL,
watched_at BIGINT NOT NULL,
last_filled_at BIGINT NOT NULL DEFAULT 0
);
-- +goose Down

View File

@ -558,7 +558,9 @@ ALTER SEQUENCE eth.uncle_cids_id_seq OWNED BY eth.uncle_cids.id;
CREATE TABLE eth.watched_addresses (
address character varying(66) NOT NULL,
added_at bigint NOT NULL
created_at bigint NOT NULL,
watched_at bigint NOT NULL,
last_filled_at bigint DEFAULT 0 NOT NULL
);