r2633 - people/goneri/SvnBuildStat-WWW
Gonéri Le Bouder
goneri-guest at alioth.debian.org
Thu May 3 00:13:44 UTC 2007
Author: goneri-guest
Date: 2007-05-03 00:13:43 +0000 (Thu, 03 May 2007)
New Revision: 2633
Added:
people/goneri/SvnBuildStat-WWW/schema-pg.sql
Log:
update to date schema for postgres
Added: people/goneri/SvnBuildStat-WWW/schema-pg.sql
===================================================================
--- people/goneri/SvnBuildStat-WWW/schema-pg.sql 2007-05-03 00:00:52 UTC (rev 2632)
+++ people/goneri/SvnBuildStat-WWW/schema-pg.sql 2007-05-03 00:13:43 UTC (rev 2633)
@@ -0,0 +1,722 @@
+--
+-- PostgreSQL database dump
+--
+
+SET client_encoding = 'UTF8';
+SET standard_conforming_strings = off;
+SET check_function_bodies = false;
+SET client_min_messages = warning;
+SET escape_string_warning = off;
+
+--
+-- Name: svnbuildstat; Type: DATABASE; Schema: -; Owner: svnbuildstat
+--
+
+CREATE DATABASE svnbuildstat WITH TEMPLATE = template0 ENCODING = 'UTF8';
+
+
+ALTER DATABASE svnbuildstat OWNER TO svnbuildstat;
+
+\connect svnbuildstat
+
+SET client_encoding = 'UTF8';
+SET standard_conforming_strings = off;
+SET check_function_bodies = false;
+SET client_min_messages = warning;
+SET escape_string_warning = off;
+
+--
+-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: pgsql
+--
+
+COMMENT ON SCHEMA public IS 'Standard public schema';
+
+
+SET search_path = public, pg_catalog;
+
+SET default_tablespace = '';
+
+SET default_with_oids = true;
+
+--
+-- Name: arch; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE arch (
+ id integer NOT NULL,
+ name text NOT NULL
+);
+
+
+ALTER TABLE public.arch OWNER TO svnbuildstat;
+
+--
+-- Name: arch_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE arch_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.arch_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: arch_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE arch_id_seq OWNED BY arch.id;
+
+
+--
+-- Name: bug; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE bug (
+ bug_id integer NOT NULL,
+ severity_id integer,
+ package_id integer,
+ name text
+);
+
+
+ALTER TABLE public.bug OWNER TO svnbuildstat;
+
+--
+-- Name: build; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE build (
+ id integer NOT NULL,
+ package_id integer,
+ svndebrelease text,
+ build_log text,
+ lintian_log text,
+ linda_log text,
+ piuparts_log text,
+ host_id integer,
+ rev integer,
+ buildisok boolean DEFAULT false,
+ duration integer,
+ lintian_release text,
+ linda_release text,
+ piuparts_release text,
+ pbuilder_release text,
+ agent_release text,
+ svnbp_release text,
+ checkoutisok boolean DEFAULT false,
+ downloadisok boolean DEFAULT false,
+ arch_id integer,
+ isbuildinprogress boolean,
+ "time" timestamp without time zone,
+ piupartsisok boolean DEFAULT false
+);
+
+
+ALTER TABLE public.build OWNER TO svnbuildstat;
+
+--
+-- Name: build_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE build_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.build_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: build_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE build_id_seq OWNED BY build.id;
+
+
+--
+-- Name: build_linda; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE build_linda (
+ build_id integer NOT NULL,
+ linda_id integer NOT NULL
+);
+
+
+ALTER TABLE public.build_linda OWNER TO svnbuildstat;
+
+--
+-- Name: build_lintian; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE build_lintian (
+ build_id integer NOT NULL,
+ lintian_id integer NOT NULL
+);
+
+
+ALTER TABLE public.build_lintian OWNER TO svnbuildstat;
+
+--
+-- Name: host; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE host (
+ id integer NOT NULL,
+ name text,
+ arch text,
+ maintainer_id integer
+);
+
+
+ALTER TABLE public.host OWNER TO svnbuildstat;
+
+--
+-- Name: host_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE host_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.host_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: host_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE host_id_seq OWNED BY host.id;
+
+
+--
+-- Name: linda; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE linda (
+ id integer NOT NULL,
+ iserror boolean,
+ name text
+);
+
+
+ALTER TABLE public.linda OWNER TO svnbuildstat;
+
+--
+-- Name: linda_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE linda_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.linda_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: linda_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE linda_id_seq OWNED BY linda.id;
+
+
+--
+-- Name: lintian; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE lintian (
+ id integer NOT NULL,
+ iserror boolean,
+ name text
+);
+
+
+ALTER TABLE public.lintian OWNER TO svnbuildstat;
+
+--
+-- Name: lintian_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE lintian_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.lintian_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: lintian_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE lintian_id_seq OWNED BY lintian.id;
+
+
+--
+-- Name: maintainer; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE maintainer (
+ id integer NOT NULL,
+ email text,
+ name text
+);
+
+
+ALTER TABLE public.maintainer OWNER TO svnbuildstat;
+
+--
+-- Name: maintainer_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE maintainer_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.maintainer_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: maintainer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE maintainer_id_seq OWNED BY maintainer.id;
+
+
+--
+-- Name: package; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE package (
+ id integer NOT NULL,
+ tarballuri text,
+ repository_id integer,
+ name text,
+ rev text,
+ istarballpresent boolean DEFAULT false,
+ isindebian boolean DEFAULT false,
+ svndebrelease text,
+ uri text
+);
+
+
+ALTER TABLE public.package OWNER TO svnbuildstat;
+
+--
+-- Name: package_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE package_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.package_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: package_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE package_id_seq OWNED BY package.id;
+
+
+--
+-- Name: package_maintainer; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE package_maintainer (
+ package_id integer NOT NULL,
+ maintainer_id integer NOT NULL
+);
+
+
+ALTER TABLE public.package_maintainer OWNER TO svnbuildstat;
+
+--
+-- Name: repository; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE repository (
+ id integer NOT NULL,
+ uri text,
+ name text,
+ tarballlayout text,
+ enabled boolean DEFAULT true,
+ rev integer
+);
+
+
+ALTER TABLE public.repository OWNER TO svnbuildstat;
+
+--
+-- Name: repository_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE repository_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.repository_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: repository_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE repository_id_seq OWNED BY repository.id;
+
+
+--
+-- Name: severity; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE TABLE severity (
+ id integer NOT NULL,
+ name text
+);
+
+
+ALTER TABLE public.severity OWNER TO svnbuildstat;
+
+--
+-- Name: severity_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
+--
+
+CREATE SEQUENCE severity_id_seq
+ INCREMENT BY 1
+ NO MAXVALUE
+ NO MINVALUE
+ CACHE 1;
+
+
+ALTER TABLE public.severity_id_seq OWNER TO svnbuildstat;
+
+--
+-- Name: severity_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: svnbuildstat
+--
+
+ALTER SEQUENCE severity_id_seq OWNED BY severity.id;
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE arch ALTER COLUMN id SET DEFAULT nextval('arch_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE build ALTER COLUMN id SET DEFAULT nextval('build_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE host ALTER COLUMN id SET DEFAULT nextval('host_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE linda ALTER COLUMN id SET DEFAULT nextval('linda_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE lintian ALTER COLUMN id SET DEFAULT nextval('lintian_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE maintainer ALTER COLUMN id SET DEFAULT nextval('maintainer_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE package ALTER COLUMN id SET DEFAULT nextval('package_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE repository ALTER COLUMN id SET DEFAULT nextval('repository_id_seq'::regclass);
+
+
+--
+-- Name: id; Type: DEFAULT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE severity ALTER COLUMN id SET DEFAULT nextval('severity_id_seq'::regclass);
+
+
+--
+-- Name: arch_arch_key; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY arch
+ ADD CONSTRAINT arch_arch_key UNIQUE (name);
+
+
+--
+-- Name: arch_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY arch
+ ADD CONSTRAINT arch_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: bug_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY bug
+ ADD CONSTRAINT bug_pkey PRIMARY KEY (bug_id);
+
+
+--
+-- Name: build_linda_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY build_linda
+ ADD CONSTRAINT build_linda_pkey PRIMARY KEY (build_id, linda_id);
+
+
+--
+-- Name: build_lintian_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY build_lintian
+ ADD CONSTRAINT build_lintian_pkey PRIMARY KEY (build_id, lintian_id);
+
+
+--
+-- Name: build_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY build
+ ADD CONSTRAINT build_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: host_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY host
+ ADD CONSTRAINT host_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: linda_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY linda
+ ADD CONSTRAINT linda_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: lintian_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY lintian
+ ADD CONSTRAINT lintian_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: maintainer_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY maintainer
+ ADD CONSTRAINT maintainer_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: package_maintainer_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY package_maintainer
+ ADD CONSTRAINT package_maintainer_pkey PRIMARY KEY (package_id, maintainer_id);
+
+
+--
+-- Name: package_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY package
+ ADD CONSTRAINT package_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: repository_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY repository
+ ADD CONSTRAINT repository_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: severity_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+ALTER TABLE ONLY severity
+ ADD CONSTRAINT severity_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: arch_arch_name; Type: INDEX; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE INDEX arch_arch_name ON arch USING btree (name);
+
+
+--
+-- Name: idx_name; Type: INDEX; Schema: public; Owner: svnbuildstat; Tablespace:
+--
+
+CREATE INDEX idx_name ON package USING btree (name);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build_linda
+ ADD CONSTRAINT "$1" FOREIGN KEY (build_id) REFERENCES build(id);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build_lintian
+ ADD CONSTRAINT "$1" FOREIGN KEY (build_id) REFERENCES build(id);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY host
+ ADD CONSTRAINT "$1" FOREIGN KEY (maintainer_id) REFERENCES maintainer(id);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY package
+ ADD CONSTRAINT "$1" FOREIGN KEY (repository_id) REFERENCES repository(id);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY package_maintainer
+ ADD CONSTRAINT "$1" FOREIGN KEY (package_id) REFERENCES package(id);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build
+ ADD CONSTRAINT "$1" FOREIGN KEY (package_id) REFERENCES package(id);
+
+
+--
+-- Name: $1; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY bug
+ ADD CONSTRAINT "$1" FOREIGN KEY (severity_id) REFERENCES severity(id);
+
+
+--
+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build_linda
+ ADD CONSTRAINT "$2" FOREIGN KEY (linda_id) REFERENCES linda(id);
+
+
+--
+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build_lintian
+ ADD CONSTRAINT "$2" FOREIGN KEY (lintian_id) REFERENCES lintian(id);
+
+
+--
+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY package_maintainer
+ ADD CONSTRAINT "$2" FOREIGN KEY (maintainer_id) REFERENCES maintainer(id);
+
+
+--
+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build
+ ADD CONSTRAINT "$2" FOREIGN KEY (host_id) REFERENCES host(id);
+
+
+--
+-- Name: $2; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY bug
+ ADD CONSTRAINT "$2" FOREIGN KEY (package_id) REFERENCES package(id);
+
+
+--
+-- Name: $3; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY build
+ ADD CONSTRAINT "$3" FOREIGN KEY (arch_id) REFERENCES arch(id);
+
+
+--
+-- Name: public; Type: ACL; Schema: -; Owner: pgsql
+--
+
+REVOKE ALL ON SCHEMA public FROM PUBLIC;
+REVOKE ALL ON SCHEMA public FROM pgsql;
+GRANT ALL ON SCHEMA public TO pgsql;
+GRANT ALL ON SCHEMA public TO PUBLIC;
+
+
+--
+-- PostgreSQL database dump complete
+--
+
More information about the Pkg-games-commits
mailing list