Skip to content

Commit

Permalink
Merge pull request #60 from vulcanize/release-v2.1.1
Browse files Browse the repository at this point in the history
Release v2.1.1
  • Loading branch information
i-norden authored Mar 31, 2022
2 parents 9779b46 + c91f7cd commit a123bf5
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrations/00017_create_eth_meta_schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- +goose Up
CREATE SCHEMA eth_meta;

-- +goose Down
DROP SCHEMA eth_meta;
10 changes: 10 additions & 0 deletions db/migrations/00018_create_watched_addresses_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- +goose Up
CREATE TABLE eth_meta.watched_addresses (
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
DROP TABLE eth_meta.watched_addresses;
27 changes: 27 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ SET row_security = off;
CREATE SCHEMA eth;


--
-- Name: eth_meta; Type: SCHEMA; Schema: -; Owner: -
--

CREATE SCHEMA eth_meta;


SET default_tablespace = '';

--
Expand Down Expand Up @@ -552,6 +559,18 @@ 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_meta; Owner: -
--

CREATE TABLE eth_meta.watched_addresses (
address character varying(66) NOT NULL,
created_at bigint NOT NULL,
watched_at bigint NOT NULL,
last_filled_at bigint DEFAULT 0 NOT NULL
);


--
-- Name: blocks; Type: TABLE; Schema: public; Owner: -
--
Expand Down Expand Up @@ -863,6 +882,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_meta; Owner: -
--

ALTER TABLE ONLY eth_meta.watched_addresses
ADD CONSTRAINT watched_addresses_pkey PRIMARY KEY (address);


--
-- Name: blocks blocks_key_key; Type: CONSTRAINT; Schema: public; Owner: -
--
Expand Down

0 comments on commit a123bf5

Please sign in to comment.