[Collab-qa-commits] r458 - svnbuildstat

goneri-guest at alioth.debian.org goneri-guest at alioth.debian.org
Wed Sep 19 09:15:55 UTC 2007


Author: goneri-guest
Date: 2007-09-19 09:15:55 +0000 (Wed, 19 Sep 2007)
New Revision: 458

Modified:
   svnbuildstat/schema-pg.sql
Log:
the up to date schema


Modified: svnbuildstat/schema-pg.sql
===================================================================
--- svnbuildstat/schema-pg.sql	2007-09-18 14:23:27 UTC (rev 457)
+++ svnbuildstat/schema-pg.sql	2007-09-19 09:15:55 UTC (rev 458)
@@ -24,6 +24,8 @@
     LANGUAGE sql;
 
 
+ALTER FUNCTION public.lindacount(integer) OWNER TO svnbuildstat;
+
 --
 -- Name: lindaerrcount(integer); Type: FUNCTION; Schema: public; Owner: svnbuildstat
 --
@@ -33,6 +35,8 @@
     LANGUAGE sql;
 
 
+ALTER FUNCTION public.lindaerrcount(integer) OWNER TO svnbuildstat;
+
 --
 -- Name: lintiancount(integer); Type: FUNCTION; Schema: public; Owner: svnbuildstat
 --
@@ -42,6 +46,8 @@
     LANGUAGE sql;
 
 
+ALTER FUNCTION public.lintiancount(integer) OWNER TO svnbuildstat;
+
 --
 -- Name: lintianerrcount(integer); Type: FUNCTION; Schema: public; Owner: svnbuildstat
 --
@@ -51,7 +57,26 @@
     LANGUAGE sql;
 
 
+ALTER FUNCTION public.lintianerrcount(integer) OWNER TO svnbuildstat;
+
+SET default_tablespace = '';
+
+SET default_with_oids = false;
+
 --
+-- Name: aliothlogin; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
+--
+
+CREATE TABLE aliothlogin (
+    id serial NOT NULL,
+    maintainer_id serial NOT NULL,
+    name text
+);
+
+
+ALTER TABLE public.aliothlogin OWNER TO svnbuildstat;
+
+--
 -- Name: arch_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
 
@@ -62,10 +87,8 @@
     CACHE 1;
 
 
-SET default_tablespace = '';
+ALTER TABLE public.arch_id_seq OWNER TO svnbuildstat;
 
-SET default_with_oids = false;
-
 --
 -- Name: arch; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -76,6 +99,8 @@
 );
 
 
+ALTER TABLE public.arch OWNER TO svnbuildstat;
+
 --
 -- Name: bug; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -88,6 +113,8 @@
 );
 
 
+ALTER TABLE public.bug OWNER TO svnbuildstat;
+
 --
 -- Name: build_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -99,6 +126,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.build_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: build; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -120,17 +149,23 @@
     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
+    piupartsisok boolean DEFAULT false,
+    changelog text
 );
 
 
+ALTER TABLE public.build OWNER TO svnbuildstat;
+
 --
+-- Name: COLUMN build.changelog; Type: COMMENT; Schema: public; Owner: svnbuildstat
+--
+
+COMMENT ON COLUMN build.changelog IS 'rcs log since the previous builded revision';
+
+
+--
 -- Name: build_linda; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
 
@@ -140,6 +175,8 @@
 );
 
 
+ALTER TABLE public.build_linda OWNER TO svnbuildstat;
+
 --
 -- Name: build_lintian; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -150,6 +187,8 @@
 );
 
 
+ALTER TABLE public.build_lintian OWNER TO svnbuildstat;
+
 --
 -- Name: host_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -161,6 +200,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.host_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: host; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -173,6 +214,8 @@
 );
 
 
+ALTER TABLE public.host OWNER TO svnbuildstat;
+
 --
 -- Name: linda_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -184,6 +227,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.linda_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: linda; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -195,6 +240,8 @@
 );
 
 
+ALTER TABLE public.linda OWNER TO svnbuildstat;
+
 --
 -- Name: lintian_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -206,6 +253,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.lintian_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: lintian; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -217,6 +266,8 @@
 );
 
 
+ALTER TABLE public.lintian OWNER TO svnbuildstat;
+
 --
 -- Name: maintainer_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -228,6 +279,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.maintainer_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: maintainer; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -239,6 +292,8 @@
 );
 
 
+ALTER TABLE public.maintainer OWNER TO svnbuildstat;
+
 --
 -- Name: package_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -250,6 +305,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.package_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: package; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -274,10 +331,19 @@
     i386 boolean DEFAULT true,
     powerpc boolean DEFAULT true,
     amd64 boolean DEFAULT true,
-    sparc boolean DEFAULT true
+    sparc boolean DEFAULT true,
+    todo text,
+    currentchangelogentry text,
+    currentpendingbug text,
+    isinincoming boolean DEFAULT false,
+    isinnew boolean DEFAULT false,
+    issrcinmypool boolean DEFAULT false,
+    realsvndebrelease text
 );
 
 
+ALTER TABLE public.package OWNER TO svnbuildstat;
+
 --
 -- Name: package_maintainer; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -288,6 +354,8 @@
 );
 
 
+ALTER TABLE public.package_maintainer OWNER TO svnbuildstat;
+
 --
 -- Name: repository_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -299,6 +367,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.repository_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: repository; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -314,6 +384,8 @@
 );
 
 
+ALTER TABLE public.repository OWNER TO svnbuildstat;
+
 --
 -- Name: severity_id_seq; Type: SEQUENCE; Schema: public; Owner: svnbuildstat
 --
@@ -325,6 +397,8 @@
     CACHE 1;
 
 
+ALTER TABLE public.severity_id_seq OWNER TO svnbuildstat;
+
 --
 -- Name: severity; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
@@ -335,31 +409,73 @@
 );
 
 
+ALTER TABLE public.severity OWNER TO svnbuildstat;
+
 --
--- Name: viewpackage; Type: VIEW; Schema: public; Owner: svnbuildstat
+-- Name: vcschangelog; Type: TABLE; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
 
-CREATE VIEW viewpackage AS
-    SELECT DISTINCT count(build.id) AS builded, max(lintiancount(build.id)) AS lintiancount, max(lintianerrcount(build.id)) AS lintianerrcount, max(lindacount(build.id)) AS lindacount, max(lindaerrcount(build.id)) AS lindaerrcount, bool_or(build.buildisok) AS buildisok, bool_or(build.piupartsisok) AS piupartsisok, max(build."time") AS lastbuilddate, package.id AS package_id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.tarballuri, package.uri, package.isnative, package.iswatchfilebroken, count(bug.bug_id) AS bugcount, max(bug.severity_id) AS bugmaxseverity, package.istarballpresent, package.svndebrelease, package.lastbuildstart FROM ((package LEFT JOIN build build ON (((package.id = build.package_id) AND (package.rev = (build.rev)::text)))) LEFT JOIN bug ON ((package.id = bug.package_id))) GROUP BY package.id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.istarballpresent, package.tarballuri, package.uri, package.svndebrelease, package.isnative, package.iswatchfilebroken, package.lastbuildstart ORDER BY count(build.id), max(lintiancount(build.id)), max(lintianerrcount(build.id)), max(lindacount(build.id)), max(lindaerrcount(build.id)), bool_or(build.buildisok), bool_or(build.piupartsisok), max(build."time"), package.id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.tarballuri, package.uri, package.isnative, package.iswatchfilebroken, count(bug.bug_id), max(bug.severity_id), package.istarballpresent, package.svndebrelease, package.lastbuildstart;
+CREATE TABLE vcschangelog (
+    id serial NOT NULL,
+    aliothlogin_id integer,
+    package_id integer NOT NULL,
+    date timestamp without time zone,
+    log text,
+    rev integer NOT NULL
+);
 
 
+ALTER TABLE public.vcschangelog OWNER TO svnbuildstat;
+
 --
--- Name: viewpackage2; Type: VIEW; Schema: public; Owner: svnbuildstat
+-- Name: viewchangelog; Type: VIEW; Schema: public; Owner: goneri
 --
 
-CREATE VIEW viewpackage2 AS
-    SELECT DISTINCT count(build.id) AS builded, max(lintiancount(build.id)) AS lintiancount, max(lintianerrcount(build.id)) AS lintianerrcount, max(lindacount(build.id)) AS lindacount, max(lindaerrcount(build.id)) AS lindaerrcount, bool_or(build.buildisok) AS buildisok, bool_or(build.piupartsisok) AS piupartsisok, max(build."time") AS lastbuilddate, package.id AS package_id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.tarballuri, package.uri, package.isnative, package.iswatchfilebroken, count(bug.bug_id) AS bugcount, max(bug.severity_id) AS bugmaxseverity, package.istarballpresent, package.svndebrelease, package.lastbuildstart FROM ((package LEFT JOIN build build ON (((package.id = build.package_id) AND (package.rev = (build.rev)::text)))) LEFT JOIN bug ON ((package.id = bug.package_id))) GROUP BY package.id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.istarballpresent, package.tarballuri, package.uri, package.svndebrelease, package.isnative, package.iswatchfilebroken, package.lastbuildstart ORDER BY count(build.id), max(lintiancount(build.id)), max(lintianerrcount(build.id)), max(lindacount(build.id)), max(lindaerrcount(build.id)), bool_or(build.buildisok), bool_or(build.piupartsisok), max(build."time"), package.id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.tarballuri, package.uri, package.isnative, package.iswatchfilebroken, count(bug.bug_id), max(bug.severity_id), package.istarballpresent, package.svndebrelease, package.lastbuildstart;
+CREATE VIEW viewchangelog AS
+    SELECT aliothlogin.name, vcschangelog.date, vcschangelog.log, vcschangelog.rev, build.buildisok, package.id FROM vcschangelog, build, package, aliothlogin WHERE ((((build.package_id = package.id) AND (vcschangelog.rev = build.rev)) AND (vcschangelog.package_id = package.id)) AND (vcschangelog.aliothlogin_id = aliothlogin.id));
 
 
+ALTER TABLE public.viewchangelog OWNER TO goneri;
+
 --
+-- Name: viewpackage; Type: VIEW; Schema: public; Owner: svnbuildstat
+--
+
+CREATE VIEW viewpackage AS
+    SELECT DISTINCT count(build.id) AS builded, max(lintiancount(build.id)) AS lintiancount, max(lintianerrcount(build.id)) AS lintianerrcount, max(lindacount(build.id)) AS lindacount, max(lindaerrcount(build.id)) AS lindaerrcount, bool_or(build.buildisok) AS buildisok, bool_or(build.piupartsisok) AS piupartsisok, max(build."time") AS lastbuilddate, package.id AS package_id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.tarballuri, package.uri, package.isnative, package.iswatchfilebroken, count(bug.bug_id) AS bugcount, max(bug.severity_id) AS bugmaxseverity, package.istarballpresent, package.svndebrelease, package.lastbuildstart, package.currentpendingbug FROM ((package LEFT JOIN build build ON (((package.id = build.package_id) AND (package.rev = (build.rev)::text)))) LEFT JOIN bug ON ((package.id = bug.package_id))) GROUP BY package.id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.istarballpresent, package.tarballuri, package.uri, package.svndebrelease, package.isnative, package.iswatchfilebroken, package.lastbuildstart, package.currentpendingbug ORDER BY count(build.id), max(lintiancount(build.id)), max(lintianerrcount(build.id)), max(lindacount(build.id)), max(lindaerrcount(build.id)), bool_or(build.buildisok), bool_or(build.piupartsisok), max(build."time"), package.id, package.name, package.repository_id, package.isindebian, package.isuptodate, package.tarballuri, package.uri, package.isnative, package.iswatchfilebroken, count(bug.bug_id), max(bug.severity_id), package.istarballpresent, package.svndebrelease, package.lastbuildstart, package.currentpendingbug;
+
+
+ALTER TABLE public.viewpackage OWNER TO svnbuildstat;
+
+--
 -- Name: viewtobuild; Type: VIEW; Schema: public; Owner: svnbuildstat
 --
 
 CREATE VIEW viewtobuild AS
-    SELECT package.id AS package_id FROM (package LEFT JOIN build ON ((((package.id = build.package_id) AND (package.rev = (build.rev)::text)) AND (build.isbuildinprogress = false)))) WHERE (((package.blacklisted = false) AND ((package.isnative = true) OR ((package.isnative = false) AND (package.istarballpresent = true)))) AND ((package.lastbuildstart IS NULL) OR (package.lastbuildstart < (now() - '03:00:00'::interval)))) ORDER BY (build.id IS NOT NULL), build."time";
+    SELECT package.id, package.i386, package.powerpc, package.sparc, package.amd64 FROM (package LEFT JOIN build ON (((package.id = build.package_id) AND (package.rev = (build.rev)::text)))) WHERE (((package.blacklisted = false) AND ((package.isnative = true) OR (package.istarballpresent = true))) AND ((package.lastbuildstart IS NULL) OR (package.lastbuildstart < (now() - '03:00:00'::interval)))) ORDER BY (build.id IS NOT NULL), build."time";
 
 
+ALTER TABLE public.viewtobuild OWNER TO svnbuildstat;
+
 --
+-- Name: viewtobuild2; Type: VIEW; Schema: public; Owner: svnbuildstat
+--
+
+CREATE VIEW viewtobuild2 AS
+    SELECT package.id, package.i386, package.powerpc, package.sparc, package.amd64 FROM (package LEFT JOIN build ON (((package.id = build.package_id) AND (package.rev = (build.rev)::text)))) WHERE (((package.blacklisted = false) AND (package.issrcinmypool = true)) AND ((package.lastbuildstart IS NULL) OR (package.lastbuildstart < (now() - '03:00:00'::interval)))) ORDER BY (build.id IS NOT NULL), build."time";
+
+
+ALTER TABLE public.viewtobuild2 OWNER TO svnbuildstat;
+
+--
+-- Name: aliothlogin_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace: 
+--
+
+ALTER TABLE ONLY aliothlogin
+    ADD CONSTRAINT aliothlogin_pkey PRIMARY KEY (id);
+
+
+--
 -- Name: arch_arch_key; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
 
@@ -472,6 +588,14 @@
 
 
 --
+-- Name: vcschangelog_pkey; Type: CONSTRAINT; Schema: public; Owner: svnbuildstat; Tablespace: 
+--
+
+ALTER TABLE ONLY vcschangelog
+    ADD CONSTRAINT vcschangelog_pkey PRIMARY KEY (id);
+
+
+--
 -- Name: arch_arch_name; Type: INDEX; Schema: public; Owner: svnbuildstat; Tablespace: 
 --
 
@@ -534,6 +658,14 @@
 
 
 --
+-- Name: aliothlogin_maintainer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY aliothlogin
+    ADD CONSTRAINT aliothlogin_maintainer_id_fkey FOREIGN KEY (maintainer_id) REFERENCES maintainer(id) ON DELETE SET NULL;
+
+
+--
 -- Name: bug_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
 --
 
@@ -590,6 +722,22 @@
 
 
 --
+-- Name: vcschangelog_aliothlogin_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY vcschangelog
+    ADD CONSTRAINT vcschangelog_aliothlogin_id_fkey FOREIGN KEY (aliothlogin_id) REFERENCES aliothlogin(id) ON DELETE SET NULL;
+
+
+--
+-- Name: vcschangelog_package_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: svnbuildstat
+--
+
+ALTER TABLE ONLY vcschangelog
+    ADD CONSTRAINT vcschangelog_package_id_fkey FOREIGN KEY (package_id) REFERENCES package(id) ON DELETE CASCADE;
+
+
+--
 -- Name: public; Type: ACL; Schema: -; Owner: postgres
 --
 




More information about the Collab-qa-commits mailing list