Add table for watched addresses in eth schema
This commit is contained in:
parent
075a790dfc
commit
e05942ec17
8
db/migrations/00017_create_watched_addresses_table.sql
Normal file
8
db/migrations/00017_create_watched_addresses_table.sql
Normal 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;
|
||||
18
schema.sql
18
schema.sql
@ -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: -
|
||||
--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user