Move table for watched addresses to eth_meta schema

This commit is contained in:
Prathamesh Musale 2022-02-04 15:03:23 +05:30
parent 174ac94752
commit c15061dee6
3 changed files with 18 additions and 6 deletions

View File

@ -0,0 +1,5 @@
-- +goose Up
CREATE SCHEMA eth_meta;
-- +goose Down
DROP SCHEMA eth_meta;

View File

@ -1,5 +1,5 @@
-- +goose Up -- +goose Up
CREATE TABLE eth.watched_addresses ( CREATE TABLE eth_meta.watched_addresses (
address VARCHAR(66) PRIMARY KEY, address VARCHAR(66) PRIMARY KEY,
created_at BIGINT NOT NULL, created_at BIGINT NOT NULL,
watched_at BIGINT NOT NULL, watched_at BIGINT NOT NULL,
@ -7,4 +7,4 @@ CREATE TABLE eth.watched_addresses (
); );
-- +goose Down -- +goose Down
DROP TABLE eth.watched_addresses; DROP TABLE eth_meta.watched_addresses;

View File

@ -23,6 +23,13 @@ SET row_security = off;
CREATE SCHEMA eth; CREATE SCHEMA eth;
--
-- Name: eth_meta; Type: SCHEMA; Schema: -; Owner: -
--
CREATE SCHEMA eth_meta;
SET default_tablespace = ''; SET default_tablespace = '';
-- --
@ -553,10 +560,10 @@ ALTER SEQUENCE eth.uncle_cids_id_seq OWNED BY eth.uncle_cids.id;
-- --
-- Name: watched_addresses; Type: TABLE; Schema: eth; Owner: - -- Name: watched_addresses; Type: TABLE; Schema: eth_meta; Owner: -
-- --
CREATE TABLE eth.watched_addresses ( CREATE TABLE eth_meta.watched_addresses (
address character varying(66) NOT NULL, address character varying(66) NOT NULL,
created_at bigint NOT NULL, created_at bigint NOT NULL,
watched_at bigint NOT NULL, watched_at bigint NOT NULL,
@ -876,10 +883,10 @@ ALTER TABLE ONLY eth.uncle_cids
-- --
-- Name: watched_addresses watched_addresses_pkey; Type: CONSTRAINT; Schema: eth; Owner: - -- Name: watched_addresses watched_addresses_pkey; Type: CONSTRAINT; Schema: eth_meta; Owner: -
-- --
ALTER TABLE ONLY eth.watched_addresses ALTER TABLE ONLY eth_meta.watched_addresses
ADD CONSTRAINT watched_addresses_pkey PRIMARY KEY (address); ADD CONSTRAINT watched_addresses_pkey PRIMARY KEY (address);