structure.sql: remove bank_balances, bank_transactions.

This commit is contained in:
evazion 2017-04-19 17:03:42 -05:00
parent 113d8824d5
commit 9816676bfd

View File

@ -777,74 +777,6 @@ CREATE SEQUENCE artists_id_seq
ALTER SEQUENCE artists_id_seq OWNED BY artists.id;
--
-- Name: bank_balances; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE bank_balances (
id integer NOT NULL,
user_id integer NOT NULL,
amount integer NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
nonce character varying NOT NULL
);
--
-- Name: bank_balances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE bank_balances_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: bank_balances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE bank_balances_id_seq OWNED BY bank_balances.id;
--
-- Name: bank_transactions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE bank_transactions (
id integer NOT NULL,
user_id integer NOT NULL,
amount integer NOT NULL,
nonce character varying NOT NULL,
type character varying NOT NULL,
data text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- Name: bank_transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE bank_transactions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: bank_transactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE bank_transactions_id_seq OWNED BY bank_transactions.id;
--
-- Name: bans; Type: TABLE; Schema: public; Owner: -
--
@ -3451,20 +3383,6 @@ ALTER TABLE ONLY artist_versions ALTER COLUMN id SET DEFAULT nextval('artist_ver
ALTER TABLE ONLY artists ALTER COLUMN id SET DEFAULT nextval('artists_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY bank_balances ALTER COLUMN id SET DEFAULT nextval('bank_balances_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY bank_transactions ALTER COLUMN id SET DEFAULT nextval('bank_transactions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
--
@ -4532,22 +4450,6 @@ ALTER TABLE ONLY artists
ADD CONSTRAINT artists_pkey PRIMARY KEY (id);
--
-- Name: bank_balances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY bank_balances
ADD CONSTRAINT bank_balances_pkey PRIMARY KEY (id);
--
-- Name: bank_transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY bank_transactions
ADD CONSTRAINT bank_transactions_pkey PRIMARY KEY (id);
--
-- Name: bans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -5051,34 +4953,6 @@ CREATE INDEX index_artists_on_other_names_index ON artists USING gin (other_name
CREATE INDEX index_artists_on_other_names_trgm ON artists USING gin (other_names gin_trgm_ops);
--
-- Name: index_bank_balances_on_user_id; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX index_bank_balances_on_user_id ON bank_balances USING btree (user_id);
--
-- Name: index_bank_transactions_on_created_at; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_bank_transactions_on_created_at ON bank_transactions USING btree (created_at);
--
-- Name: index_bank_transactions_on_nonce; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX index_bank_transactions_on_nonce ON bank_transactions USING btree (nonce);
--
-- Name: index_bank_transactions_on_user_id; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_bank_transactions_on_user_id ON bank_transactions USING btree (user_id);
--
-- Name: index_bans_on_banner_id; Type: INDEX; Schema: public; Owner: -
--
@ -7571,16 +7445,10 @@ INSERT INTO schema_migrations (version) VALUES ('20170112060921');
INSERT INTO schema_migrations (version) VALUES ('20170117233040');
INSERT INTO schema_migrations (version) VALUES ('20170126020516');
INSERT INTO schema_migrations (version) VALUES ('20170126214445');
INSERT INTO schema_migrations (version) VALUES ('20170218104710');
INSERT INTO schema_migrations (version) VALUES ('20170302014435');
INSERT INTO schema_migrations (version) VALUES ('20170314204631');
INSERT INTO schema_migrations (version) VALUES ('20170314235626');
INSERT INTO schema_migrations (version) VALUES ('20170316224630');