mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-02-17 11:45:50 +00:00
Forgot to commit the new db schema
This commit is contained in:
parent
f40600d6e2
commit
b422d5efbd
1 changed files with 45 additions and 31 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
-- Dumped from database version 9.4.5
|
||||
-- Dumped by pg_dump version 9.4.5
|
||||
-- Started on 2016-01-21 20:29:42 GMT
|
||||
-- Started on 2016-01-29 20:18:23 CET
|
||||
|
||||
SET statement_timeout = 0;
|
||||
SET lock_timeout = 0;
|
||||
|
@ -14,7 +14,7 @@ SET check_function_bodies = false;
|
|||
SET client_min_messages = warning;
|
||||
|
||||
--
|
||||
-- TOC entry 178 (class 3079 OID 11869)
|
||||
-- TOC entry 176 (class 3079 OID 11873)
|
||||
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
|
||||
--
|
||||
|
||||
|
@ -22,8 +22,8 @@ CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 2041 (class 0 OID 0)
|
||||
-- Dependencies: 178
|
||||
-- TOC entry 2044 (class 0 OID 0)
|
||||
-- Dependencies: 176
|
||||
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
|
||||
--
|
||||
|
||||
|
@ -33,7 +33,21 @@ COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- TOC entry 192 (class 1255 OID 31654)
|
||||
-- TOC entry 191 (class 1255 OID 16437)
|
||||
-- Name: str_begins_with(text, text); Type: FUNCTION; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
CREATE FUNCTION str_begins_with(text, text) RETURNS boolean
|
||||
LANGUAGE sql IMMUTABLE
|
||||
AS $_$SELECT
|
||||
$1 LIKE regexp_replace($2||'', '(\%_)', '\\1')||'%';
|
||||
$_$;
|
||||
|
||||
|
||||
ALTER FUNCTION public.str_begins_with(text, text) OWNER TO @DB_OWNER_NAME@;
|
||||
|
||||
--
|
||||
-- TOC entry 189 (class 1255 OID 16386)
|
||||
-- Name: str_match_partial(text, text, boolean); Type: FUNCTION; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -50,7 +64,7 @@ $_$;
|
|||
ALTER FUNCTION public.str_match_partial(text, text, boolean) OWNER TO @DB_OWNER_NAME@;
|
||||
|
||||
--
|
||||
-- TOC entry 191 (class 1255 OID 31290)
|
||||
-- TOC entry 190 (class 1255 OID 16387)
|
||||
-- Name: upcase_hash(); Type: FUNCTION; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -71,7 +85,7 @@ SET default_tablespace = '';
|
|||
SET default_with_oids = false;
|
||||
|
||||
--
|
||||
-- TOC entry 175 (class 1259 OID 31281)
|
||||
-- TOC entry 172 (class 1259 OID 16388)
|
||||
-- Name: files; Type: TABLE; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -98,8 +112,8 @@ CREATE TABLE files (
|
|||
ALTER TABLE files OWNER TO @DB_OWNER_NAME@;
|
||||
|
||||
--
|
||||
-- TOC entry 2042 (class 0 OID 0)
|
||||
-- Dependencies: 175
|
||||
-- TOC entry 2045 (class 0 OID 0)
|
||||
-- Dependencies: 172
|
||||
-- Name: CONSTRAINT chk_hash_0 ON files; Type: COMMENT; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -107,7 +121,7 @@ COMMENT ON CONSTRAINT chk_hash_0 ON files IS 'Make sure hash is 0 if unreadable
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 174 (class 1259 OID 31279)
|
||||
-- TOC entry 173 (class 1259 OID 16397)
|
||||
-- Name: files_id_seq; Type: SEQUENCE; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -122,8 +136,8 @@ CREATE SEQUENCE files_id_seq
|
|||
ALTER TABLE files_id_seq OWNER TO @DB_OWNER_NAME@;
|
||||
|
||||
--
|
||||
-- TOC entry 2043 (class 0 OID 0)
|
||||
-- Dependencies: 174
|
||||
-- TOC entry 2046 (class 0 OID 0)
|
||||
-- Dependencies: 173
|
||||
-- Name: files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -131,7 +145,7 @@ ALTER SEQUENCE files_id_seq OWNED BY files.id;
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 177 (class 1259 OID 31411)
|
||||
-- TOC entry 174 (class 1259 OID 16399)
|
||||
-- Name: sets; Type: TABLE; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -149,8 +163,8 @@ CREATE TABLE sets (
|
|||
ALTER TABLE sets OWNER TO @DB_OWNER_NAME@;
|
||||
|
||||
--
|
||||
-- TOC entry 2044 (class 0 OID 0)
|
||||
-- Dependencies: 177
|
||||
-- TOC entry 2047 (class 0 OID 0)
|
||||
-- Dependencies: 174
|
||||
-- Name: COLUMN sets.type; Type: COMMENT; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -164,7 +178,7 @@ O = Other';
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 176 (class 1259 OID 31409)
|
||||
-- TOC entry 175 (class 1259 OID 16409)
|
||||
-- Name: sets_id_seq; Type: SEQUENCE; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -179,8 +193,8 @@ CREATE SEQUENCE sets_id_seq
|
|||
ALTER TABLE sets_id_seq OWNER TO @DB_OWNER_NAME@;
|
||||
|
||||
--
|
||||
-- TOC entry 2045 (class 0 OID 0)
|
||||
-- Dependencies: 176
|
||||
-- TOC entry 2048 (class 0 OID 0)
|
||||
-- Dependencies: 175
|
||||
-- Name: sets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -188,7 +202,7 @@ ALTER SEQUENCE sets_id_seq OWNED BY sets.id;
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1905 (class 2604 OID 31284)
|
||||
-- TOC entry 1909 (class 2604 OID 16411)
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -196,7 +210,7 @@ ALTER TABLE ONLY files ALTER COLUMN id SET DEFAULT nextval('files_id_seq'::regcl
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1909 (class 2604 OID 31414)
|
||||
-- TOC entry 1915 (class 2604 OID 16412)
|
||||
-- Name: id; Type: DEFAULT; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -204,7 +218,7 @@ ALTER TABLE ONLY sets ALTER COLUMN id SET DEFAULT nextval('sets_id_seq'::regclas
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1918 (class 2606 OID 31289)
|
||||
-- TOC entry 1921 (class 2606 OID 16414)
|
||||
-- Name: pk_files_id; Type: CONSTRAINT; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -213,7 +227,7 @@ ALTER TABLE ONLY files
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1922 (class 2606 OID 31420)
|
||||
-- TOC entry 1925 (class 2606 OID 16416)
|
||||
-- Name: pk_sets_id; Type: CONSTRAINT; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -222,7 +236,7 @@ ALTER TABLE ONLY sets
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1920 (class 2606 OID 31294)
|
||||
-- TOC entry 1923 (class 2606 OID 16418)
|
||||
-- Name: uniq_item; Type: CONSTRAINT; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -231,7 +245,7 @@ ALTER TABLE ONLY files
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1914 (class 1259 OID 31426)
|
||||
-- TOC entry 1917 (class 1259 OID 16419)
|
||||
-- Name: fki_files_sets; Type: INDEX; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -239,7 +253,7 @@ CREATE INDEX fki_files_sets ON files USING btree (group_id);
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1915 (class 1259 OID 31651)
|
||||
-- TOC entry 1918 (class 1259 OID 16420)
|
||||
-- Name: idx_mimetype; Type: INDEX; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -247,7 +261,7 @@ CREATE INDEX idx_mimetype ON files USING btree (mimetype, charset);
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1916 (class 1259 OID 31292)
|
||||
-- TOC entry 1919 (class 1259 OID 16421)
|
||||
-- Name: idx_paths; Type: INDEX; Schema: public; Owner: @DB_OWNER_NAME@; Tablespace:
|
||||
--
|
||||
|
||||
|
@ -255,7 +269,7 @@ CREATE INDEX idx_paths ON files USING btree (path);
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1924 (class 2620 OID 31291)
|
||||
-- TOC entry 1927 (class 2620 OID 16422)
|
||||
-- Name: triggerupcasehash; Type: TRIGGER; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -263,7 +277,7 @@ CREATE TRIGGER triggerupcasehash BEFORE INSERT OR UPDATE ON files FOR EACH ROW E
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 1923 (class 2606 OID 31421)
|
||||
-- TOC entry 1926 (class 2606 OID 16423)
|
||||
-- Name: fk_files_sets; Type: FK CONSTRAINT; Schema: public; Owner: @DB_OWNER_NAME@
|
||||
--
|
||||
|
||||
|
@ -272,8 +286,8 @@ ALTER TABLE ONLY files
|
|||
|
||||
|
||||
--
|
||||
-- TOC entry 2040 (class 0 OID 0)
|
||||
-- Dependencies: 8
|
||||
-- TOC entry 2043 (class 0 OID 0)
|
||||
-- Dependencies: 6
|
||||
-- Name: public; Type: ACL; Schema: -; Owner: postgres
|
||||
--
|
||||
|
||||
|
@ -283,7 +297,7 @@ GRANT ALL ON SCHEMA public TO postgres;
|
|||
GRANT ALL ON SCHEMA public TO PUBLIC;
|
||||
|
||||
|
||||
-- Completed on 2016-01-21 20:29:44 GMT
|
||||
-- Completed on 2016-01-29 20:18:23 CET
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
|
|
Loading…
Add table
Reference in a new issue