Move table for watched addresses to eth_meta schema
This commit is contained in:
parent
174ac94752
commit
c15061dee6
5
db/migrations/00017_create_eth_meta_schema.sql
Normal file
5
db/migrations/00017_create_eth_meta_schema.sql
Normal file
@ -0,0 +1,5 @@
|
||||
-- +goose Up
|
||||
CREATE SCHEMA eth_meta;
|
||||
|
||||
-- +goose Down
|
||||
DROP SCHEMA eth_meta;
|
@ -1,5 +1,5 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE eth.watched_addresses (
|
||||
CREATE TABLE eth_meta.watched_addresses (
|
||||
address VARCHAR(66) PRIMARY KEY,
|
||||
created_at BIGINT NOT NULL,
|
||||
watched_at BIGINT NOT NULL,
|
||||
@ -7,4 +7,4 @@ CREATE TABLE eth.watched_addresses (
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE eth.watched_addresses;
|
||||
DROP TABLE eth_meta.watched_addresses;
|
15
schema.sql
15
schema.sql
@ -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 = '';
|
||||
|
||||
--
|
||||
@ -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,
|
||||
created_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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user