From 09f4ff7de125786c698dbfb920cbacfb5aeac672 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 26 Aug 2019 20:41:26 -0500 Subject: [PATCH] Update db/structure.sql. --- db/structure.sql | 62 +++++++++++++++++++----------------------------- 1 file changed, 25 insertions(+), 37 deletions(-) diff --git a/db/structure.sql b/db/structure.sql index 55a3671bd..b8f4997e3 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -5,23 +5,10 @@ SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; +SET xmloption = content; SET client_min_messages = warning; SET row_security = off; --- --- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - --- - -CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; - - --- --- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: - --- - -COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; - - -- -- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: - -- @@ -4768,14 +4755,6 @@ ALTER TABLE ONLY public.saved_searches ADD CONSTRAINT saved_searches_pkey PRIMARY KEY (id); --- --- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.schema_migrations - ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); - - -- -- Name: super_voters super_voters_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -5124,6 +5103,13 @@ CREATE INDEX index_delayed_jobs_on_run_at ON public.delayed_jobs USING btree (ru CREATE UNIQUE INDEX index_dmail_filters_on_user_id ON public.dmail_filters USING btree (user_id); +-- +-- Name: index_dmails_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dmails_on_created_at ON public.dmails USING btree (created_at); + + -- -- Name: index_dmails_on_creator_ip_addr; Type: INDEX; Schema: public; Owner: - -- @@ -5131,6 +5117,13 @@ CREATE UNIQUE INDEX index_dmail_filters_on_user_id ON public.dmail_filters USING CREATE INDEX index_dmails_on_creator_ip_addr ON public.dmails USING btree (creator_ip_addr); +-- +-- Name: index_dmails_on_from_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dmails_on_from_id ON public.dmails USING btree (from_id); + + -- -- Name: index_dmails_on_is_deleted; Type: INDEX; Schema: public; Owner: - -- @@ -6993,13 +6986,6 @@ CREATE INDEX index_posts_on_parent_id ON public.posts USING btree (parent_id); CREATE INDEX index_posts_on_pixiv_id ON public.posts USING btree (pixiv_id) WHERE (pixiv_id IS NOT NULL); --- --- Name: index_posts_on_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_posts_on_source ON public.posts USING btree (lower((source)::text)); - - -- -- Name: index_posts_on_source_pattern; Type: INDEX; Schema: public; Owner: - -- @@ -7021,13 +7007,6 @@ CREATE INDEX index_posts_on_tags_index ON public.posts USING gin (tag_index); CREATE INDEX index_posts_on_uploader_id ON public.posts USING btree (uploader_id); --- --- Name: index_posts_on_uploader_ip_addr; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_posts_on_uploader_ip_addr ON public.posts USING btree (uploader_ip_addr); - - -- -- Name: index_saved_searches_on_labels; Type: INDEX; Schema: public; Owner: - -- @@ -7308,6 +7287,13 @@ CREATE INDEX index_wiki_pages_on_title_pattern ON public.wiki_pages USING btree CREATE INDEX index_wiki_pages_on_updated_at ON public.wiki_pages USING btree (updated_at); +-- +-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version); + + -- -- Name: favorites insert_favorites_trigger; Type: TRIGGER; Schema: public; Owner: - -- @@ -7542,6 +7528,8 @@ INSERT INTO "schema_migrations" (version) VALUES ('20181130004740'), ('20181202172145'), ('20190109210822'), -('20190129012253'); +('20190129012253'), +('20190712174818'), +('20190827013252');