[Collab-qa-commits] r1528 - udd/sql

Lucas Nussbaum lucas at alioth.debian.org
Thu Jul 23 00:27:05 UTC 2009


Author: lucas
Date: 2009-07-23 00:27:03 +0000 (Thu, 23 Jul 2009)
New Revision: 1528

Modified:
   udd/sql/setup.sql
   udd/sql/upgrade.sql
Log:
add _email and _name columns in sources, packages and upload_history. add active_dds view.

Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql	2009-07-22 16:41:07 UTC (rev 1527)
+++ udd/sql/setup.sql	2009-07-23 00:27:03 UTC (rev 1528)
@@ -17,7 +17,7 @@
 -- no primary key possible: duplicate rows are possible because duplicate entries
 -- in Uploaders: are allowed. yes.
 CREATE TABLE uploaders (source text, version debversion, distribution text,
-	release release, component text, name text, email text);
+	release release, component text, uploader text, name text, email text);
    
 GRANT SELECT ON uploaders TO PUBLIC;
 
@@ -26,7 +26,7 @@
 CREATE INDEX sources_distrelcomp_idx on sources(distribution, release, component);
 
 CREATE TABLE packages_summary ( package text, version debversion, source text,
-source_version debversion, maintainer text, distribution text, release release,
+source_version debversion, maintainer text, maintainer_name text, maintainer_email text, distribution text, release release,
 component text,
 PRIMARY KEY (package, version, distribution, release, component));
 
@@ -36,7 +36,7 @@
 component text, architecture text);
 
 CREATE TABLE packages
-  (package text, version debversion, architecture text, maintainer text, description
+  (package text, version debversion, architecture text, maintainer text, maintainer_name text, maintainer_email text, description
     text, long_description text, source text, source_version debversion, essential text, depends text,
     recommends text, suggests text, enhances text, pre_depends text, breaks text,
     installed_size int, homepage text, size int,
@@ -72,14 +72,14 @@
 -- no primary key possible: duplicate rows are possible because duplicate entries
 -- in Uploaders: are allowed. yes.
 CREATE TABLE ubuntu_uploaders (source text, version debversion, distribution text,
-	release release, component text, name text, email text);
+	release release, component text, uploader text, name text, email text);
    
 GRANT SELECT ON ubuntu_uploaders TO PUBLIC;
 
 CREATE INDEX ubuntu_uploaders_distrelcompsrcver_idx on ubuntu_uploaders(distribution, release, component, source, version);
 
 CREATE TABLE ubuntu_packages_summary ( package text, version debversion, source text,
-source_version debversion, maintainer text, distribution text, release release,
+source_version debversion, maintainer text, maintainer_name text, maintainer_email text, distribution text, release release,
 component text,
 PRIMARY KEY (package, version, distribution, release, component));
 
@@ -89,7 +89,7 @@
 component text, architecture text);
 
 CREATE TABLE ubuntu_packages
-  (package text, version debversion, architecture text, maintainer text, description
+  (package text, version debversion, architecture text, maintainer text, maintainer_name text, maintainer_email text, description
     text, long_description text, source text, source_version debversion, essential text, depends text,
     recommends text, suggests text, enhances text, pre_depends text, breaks text,
     installed_size int, homepage text, size int,
@@ -330,7 +330,7 @@
 
 CREATE TABLE upload_history
  (id serial, package text, version debversion, date timestamp with time zone,
- changed_by text, maintainer text, nmu boolean, signed_by text, key_id text,
+ changed_by text, changed_by_name text, changed_by_email text, maintainer text, maintainer_name text, maintainer_email text, nmu boolean, signed_by text, signed_by_name text, signed_by_email text, key_id text,
  fingerprint text,
  PRIMARY KEY (id));
 
@@ -428,6 +428,7 @@
 
 GRANT SELECT ON all_sources TO PUBLIC;
 GRANT SELECT ON all_packages TO PUBLIC;
+GRANT SELECT ON all_packages_distrelcomparch TO PUBLIC;
 GRANT SELECT ON all_bugs TO PUBLIC;
 
 CREATE TABLE ddtp (
@@ -454,3 +455,12 @@
 );
 
 GRANT SELECT ON ddtp TO PUBLIC;
+
+-- active_dds view
+CREATE VIEW active_dds AS
+SELECT DISTINCT carnivore_login.id, login
+FROM carnivore_login, carnivore_keys
+WHERE carnivore_keys.id = carnivore_login.id
+AND key_type = 'keyring';
+
+GRANT SELECT ON active_dds TO PUBLIC;

Modified: udd/sql/upgrade.sql
===================================================================
--- udd/sql/upgrade.sql	2009-07-22 16:41:07 UTC (rev 1527)
+++ udd/sql/upgrade.sql	2009-07-23 00:27:03 UTC (rev 1528)
@@ -145,6 +145,7 @@
 CREATE VIEW all_packages_distrelcomparch AS
 SELECT * FROM packages_distrelcomparch
 UNION ALL SELECT * FROM ubuntu_packages_distrelcomparch;
+GRANT SELECT ON all_packages_distrelcomparch TO PUBLIC;
 -- turn lintian tag_type to enum
 CREATE TYPE lintian_tagtype AS ENUM('experimental', 'overriden', 'pedantic', 'information', 'warning', 'error');
 ALTER TABLE lintian ALTER COLUMN tag_type TYPE lintian_tagtype USING tag_type::lintian_tagtype;
@@ -153,3 +154,32 @@
 CREATE INDEX ubuntu_uploaders_distrelcompsrcver_idx on ubuntu_uploaders(distribution, release, component, source, version);
 CREATE INDEX packages_summary_distrelcompsrcver_idx on packages_summary(distribution, release, component, source, source_version);
 CREATE INDEX ubuntu_packages_summary_distrelcompsrcver_idx on ubuntu_packages_summary(distribution, release, component, source, source_version);
+
+-- 2009-07-17
+ALTER TABLE uploaders add uploader text;
+ALTER TABLE ubuntu_uploaders add uploader text;
+ALTER TABLE packages ADD maintainer_name text;
+ALTER TABLE packages ADD maintainer_email text;
+ALTER TABLE packages_summary ADD maintainer_name text;
+ALTER TABLE packages_summary ADD maintainer_email text;
+ALTER TABLE ubuntu_packages ADD maintainer_name text;
+ALTER TABLE ubuntu_packages ADD maintainer_email text;
+ALTER TABLE ubuntu_packages_summary ADD maintainer_name text;
+ALTER TABLE ubuntu_packages_summary ADD maintainer_email text;
+
+ALTER TABLE upload_history ADD changed_by_name text;
+ALTER TABLE upload_history ADD changed_by_email text;
+ALTER TABLE upload_history ADD maintainer_name text;
+ALTER TABLE upload_history ADD maintainer_email text;
+ALTER TABLE upload_history ADD signed_by_name text;
+ALTER TABLE upload_history ADD signed_by_email text;
+
+-- 2009-07-23
+-- active_dds view
+CREATE VIEW active_dds AS
+SELECT DISTINCT carnivore_login.id, login
+FROM carnivore_login, carnivore_keys
+WHERE carnivore_keys.id = carnivore_login.id
+AND key_type = 'keyring';
+
+GRANT SELECT ON active_dds TO PUBLIC;




More information about the Collab-qa-commits mailing list