Add table for watched addresses in eth schema

This commit is contained in:
Prathamesh Musale 2022-01-13 18:52:26 +05:30
parent 075a790dfc
commit e05942ec17
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- +goose Up
CREATE TABLE eth.watched_addresses (
address VARCHAR(66) PRIMARY KEY,
added_at BIGINT NOT NULL
);
-- +goose Down
DROP TABLE eth.watched_addresses;

View File

@ -552,6 +552,16 @@ CREATE SEQUENCE eth.uncle_cids_id_seq
ALTER SEQUENCE eth.uncle_cids_id_seq OWNED BY eth.uncle_cids.id;
--
-- Name: watched_addresses; Type: TABLE; Schema: eth; Owner: -
--
CREATE TABLE eth.watched_addresses (
address character varying(66) NOT NULL,
added_at bigint NOT NULL
);
--
-- Name: blocks; Type: TABLE; Schema: public; Owner: -
--
@ -863,6 +873,14 @@ ALTER TABLE ONLY eth.uncle_cids
ADD CONSTRAINT uncle_cids_pkey PRIMARY KEY (id);
--
-- Name: watched_addresses watched_addresses_pkey; Type: CONSTRAINT; Schema: eth; Owner: -
--
ALTER TABLE ONLY eth.watched_addresses
ADD CONSTRAINT watched_addresses_pkey PRIMARY KEY (address);
--
-- Name: blocks blocks_key_key; Type: CONSTRAINT; Schema: public; Owner: -
--