[Collab-qa-commits] r1091 - udd/src

neronus-guest at alioth.debian.org neronus-guest at alioth.debian.org
Wed Aug 13 09:32:14 UTC 2008


Author: neronus-guest
Date: 2008-08-13 09:32:13 +0000 (Wed, 13 Aug 2008)
New Revision: 1091

Removed:
   udd/src/setup-db.sql
Log:
The setup script is no longer used


Deleted: udd/src/setup-db.sql
===================================================================
--- udd/src/setup-db.sql	2008-08-12 17:46:40 UTC (rev 1090)
+++ udd/src/setup-db.sql	2008-08-13 09:32:13 UTC (rev 1091)
@@ -1,240 +0,0 @@
-CREATE TABLE packages
-  (package text, version text, architecture text, maintainer text, description
-    text, source text, source_version text, essential text, depends text,
-    recommends text, suggests text, enhances text, pre_depends text,
-    installed_size int, homepage text, size int,
-    build_essential text, origin text, sha1 text, replaces text, section text,
-    md5sum text, bugs text, priority text, tag text, task text, python_version text,
-    provides text, conflicts text, sha256 text, original_maintainer text,
-    distribution text, release text, component text,
-  PRIMARY KEY (package, version, architecture, distribution, release, component));
-
-CREATE TABLE packages_summary ( package text, version text, source text,
-source_version text, maintainer text, distribution text, release text,
-component text,
-PRIMARY KEY (package, version, distribution, release, component));
-
-CREATE TABLE ubuntu_packages
-  (package text, version text, architecture text, maintainer text, description
-    text, source text, source_version text, essential text, depends text,
-    recommends text, suggests text, enhances text, pre_depends text,
-    installed_size int, homepage text, size int,
-    build_essential text, origin text, sha1 text, replaces text, section text,
-    md5sum text, bugs text, priority text, tag text, task text, python_version text,
-    provides text, conflicts text, sha256 text, original_maintainer text,
-    distribution text, release text, component text,
-  PRIMARY KEY (package, version, architecture, distribution, release, component));
-
-CREATE TABLE ubuntu_packages_summary ( package text, version text, source text,
-source_version text, maintainer text, distribution text, release text,
-component text,
-PRIMARY KEY (package, version, distribution, release, component));
-
-CREATE TABLE sources
-  (source text, version text, maintainer text, format text, files text,
-    uploaders text, bin text, architecture text, standards_version text,
-    homepage text, build_depends text, build_depends_indep text,
-    build_conflicts text, build_conflicts_indep text, priority text, section
-    text, distribution text, release text, component text, vcs_type text,
-    vcs_url text, vcs_browser text,
-    python_version text, checksums_sha1 text, checksums_sha256 text,
-    original_maintainer text, dm_upload_allowed text,
-    PRIMARY KEY (source, version, distribution, release, component));
-
-CREATE TABLE ubuntu_sources
-  (source text, version text, maintainer text, format text, files text,
-    uploaders text, bin text, architecture text, standards_version text,
-    homepage text, build_depends text, build_depends_indep text,
-    build_conflicts text, build_conflicts_indep text, priority text, section
-    text, distribution text, release text, component text, vcs_type text,
-    vcs_url text, vcs_browser text,
-    python_version text, checksums_sha1 text, checksums_sha256 text,
-    original_maintainer text, dm_upload_allowed text,
-    PRIMARY KEY (source, version, distribution, release, component));
-
-CREATE TABLE migrations
-  (source text PRIMARY KEY, in_testing date, testing_version text, in_unstable date, unstable_version text, sync date, sync_version text, first_seen date);
-
-CREATE TABLE popcon (
-   package text, insts int, vote int, olde int, recent int, nofiles int,
-   PRIMARY KEY (package));
- 
-CREATE TABLE popcon_src (
-   source text, insts int, vote int, olde int, recent int, nofiles int,
-   PRIMARY KEY (source));
-
-CREATE TABLE popcon_src_average (
-   source text, insts int, vote int, olde int, recent int, nofiles int,
-   PRIMARY KEY (source));
-
-CREATE TABLE ubuntu_popcon (
-   package text, insts int, vote int, olde int, recent int, nofiles int,
-   PRIMARY KEY (package));
- 
-CREATE TABLE ubuntu_popcon_src (
-   source text, insts int, vote int, olde int, recent int, nofiles int,
-   PRIMARY KEY (source));
-
-CREATE TABLE ubuntu_popcon_src_average (
-   source text, insts int, vote int, olde int, recent int, nofiles int,
-   PRIMARY KEY (source));
-
-CREATE TABLE bugs
-  (id int PRIMARY KEY, package text, source text, arrival timestamp, status text,
-     severity text, submitter text, owner text, title text,
-     last_modified timestamp, affects_stable boolean,
-    affects_testing boolean, affects_unstable boolean);
-
-CREATE TABLE bugs_archived
-  (id int PRIMARY KEY, package text, source text, arrival timestamp, status text,
-     severity text, submitter text, owner text, title text,
-     last_modified timestamp, affects_stable boolean,
-    affects_testing boolean, affects_unstable boolean);
-
-CREATE TABLE bug_merged_with
-  (id int, merged_with int,
-PRIMARY KEY(id, merged_with));
-
-CREATE TABLE bug_user_tags
-  (email text, tag text, id int);
-
-CREATE TABLE bug_found_in
-  (id int, version text,
-   PRIMARY KEY(id, version));
-
-CREATE TABLE bug_fixed_in
-  (id int, version text,
-   PRIMARY KEY(id, version));
-
-CREATE TABLE bug_tags
-  (id int, tag text, PRIMARY KEY (id, tag));
-
-CREATE VIEW bugs_both AS
-  SELECT id, package, source, arrival, status, severity, submitter, owner,
-        title, last_modified, affects_stable, affects_testing,
-	affects_unstable, TRUE as is_archived
-  FROM bugs_archived
-  UNION
-  SELECT id, package, source, arrival, status, severity, submitter, owner,
-	title, last_modified, affects_stable, affects_testing,
-	affects_unstable, FALSE as is_archived FROM bugs;
-
-CREATE TABLE upload_history
- (package text, version text, date timestamp with time zone, changed_by text,
-  maintainer text, nmu boolean, signed_by text, key_id text);
-
-CREATE VIEW bugs_rt_affects_stable AS
-SELECT id, package, source FROM bugs
-WHERE affects_stable
-AND (id NOT IN (SELECT id FROM bug_tags WHERE tag IN ('sid', 'sarge', 'lenny', 'experimental'))
-OR id IN (SELECT id FROM bug_tags WHERE tag = 'etch'))
-AND id NOT IN (select id FROM bug_tags WHERE tag = 'etch-ignore')
-AND ( package IN (SELECT DISTINCT package FROM packages_summary p WHERE release = 'etch')
-OR source IN (SELECT DISTINCT package FROM sources WHERE release = 'etch'));
-
-CREATE VIEW bugs_rt_affects_testing AS
-SELECT id, package, source FROM bugs
-WHERE affects_testing 
-AND (id NOT IN (SELECT id FROM bug_tags WHERE tag IN ('sid', 'sarge', 'etch', 'experimental'))
-OR id IN (SELECT id FROM bug_tags WHERE tag = 'lenny'))
-AND id NOT IN (select id FROM bug_tags WHERE tag = 'lenny-ignore')
-AND ( package IN (SELECT DISTINCT package FROM packages_summary p WHERE release = 'lenny')
-OR source IN (SELECT DISTINCT package FROM sources WHERE release = 'lenny'));
-
-CREATE VIEW bugs_rt_affects_unstable AS
-SELECT id, package, source FROM bugs
-WHERE affects_unstable 
-AND (id NOT IN (SELECT id FROM bug_tags WHERE tag IN ('lenny', 'sarge', 'etch', 'experimental'))
-OR id IN (SELECT id FROM bug_tags WHERE tag = 'sid'))
-AND ( package IN (SELECT DISTINCT package FROM packages_summary p WHERE release = 'sid')
-OR source IN (SELECT DISTINCT package FROM sources WHERE release = 'sid'));
-
-CREATE TABLE carnivore_emails
- (id int, email text);
-
-CREATE TABLE carnivore_names
- (id int, name text);
-
-CREATE TABLE carnivore_keys
- (id int, key text, key_type text);
-
-CREATE TABLE carnivore_login
- (id int, login text,
-   PRIMARY KEY(id));
-
-CREATE DOMAIN lintian_tag_type AS TEXT
-NOT NULL
-CHECK(
-     VALUE = 'error'
-  OR VALUE = 'warning'
-  OR VALUE = 'information'
-  OR VALUE = 'experimental'
-  OR VALUE = 'overriden'
-);
-
-CREATE TABLE lintian (
-  package TEXT NOT NULL,
-  tag_type lintian_tag_type,
-  package_type TEXT,
-  tag TEXT NOT NULL
-);
-
-CREATE TABLE orphaned_packages (
-  source TEXT PRIMARY KEY,
-  type TEXT,
-  bug INT,
-  description TEXT,
-  orphaned_time TIMESTAMP
-);
-
-# CREATE INDEX packages_source_idx on packages(source);
-# CREATE INDEX packages_distrelcomp_idx on packages(distribution, release, component);
-# CREATE INDEX packages_distribution_idx on packages(distribution);
-# CREATE INDEX packages_release_idx on packages(release);
-# CREATE INDEX packages_component_idx on packages(component);
-
-# CREATE INDEX sources_distrelcomp_idx on sources(distribution, release, component);
-# CREATE INDEX sources_distribution_idx on sources(distribution);
-# CREATE INDEX sources_release_idx on sources(release);
-# CREATE INDEX sources_component_idx on sources(component);
-
-# CREATE INDEX ubuntu_packages_source_idx on ubuntu_packages(source);
-# CREATE INDEX ubuntu_packages_distrelcomp_idx on ubuntu_packages(distribution, release, component);
-# CREATE INDEX ubuntu_packages_distribution_idx on ubuntu_packages(distribution);
-# CREATE INDEX ubuntu_packages_release_idx on ubuntu_packages(release);
-# CREATE INDEX ubuntu_packages_component_idx on ubuntu_packages(component);
-
-# CREATE INDEX ubuntu_sources_distrelcomp_idx on ubuntu_sources(distribution, release, component);
-# CREATE INDEX ubuntu_sources_distribution_idx on ubuntu_sources(distribution);
-# CREATE INDEX ubuntu_sources_release_idx on ubuntu_sources(release);
-# CREATE INDEX ubuntu_sources_component_idx on ubuntu_sources(component);
-
-GRANT SELECT ON packages TO PUBLIC;
-GRANT SELECT ON sources TO PUBLIC;
-GRANT SELECT ON ubuntu_Packages TO PUBLIC;
-GRANT SELECT ON ubuntu_sources TO PUBLIC;
-GRANT SELECT ON popcon TO PUBLIC;
-GRANT SELECT ON popcon_src_average TO PUBLIC;
-GRANT SELECT ON popcon_src TO PUBLIC;
-GRANT SELECT ON ubuntu_popcon TO PUBLIC;
-GRANT SELECT ON ubuntu_popcon_src_average TO PUBLIC;
-GRANT SELECT ON ubuntu_popcon_src TO PUBLIC;
-GRANT SELECT ON bugs TO PUBLIC;
-GRANT SELECT ON bugs_archived TO PUBLIC;
-GRANT SELECT ON bugs TO PUBLIC;
-GRANT SELECT ON bugs_both TO PUBLIC;
-GRANT SELECT ON bug_merged_with TO PUBLIC;
-GRANT SELECT ON bug_found_in TO PUBLIC;
-GRANT SELECT ON bug_fixed_in TO PUBLIC;
-GRANT SELECT ON bug_user_tags TO PUBLIC;
-GRANT SELECT ON bugs_rt_affects_unstable TO PUBLIC;
-GRANT SELECT ON bugs_rt_affects_testing TO PUBLIC;
-GRANT SELECT ON bugs_rt_affects_stable TO PUBLIC;
-GRANT SELECT ON carnivore_emails TO PUBLIC;
-GRANT SELECT ON carnivore_names TO PUBLIC;
-GRANT SELECT ON carnivore_keys TO PUBLIC;
-GRANT SELECT ON carnivore_login TO PUBLIC;
-GRANT SELECT ON lintian TO PUBLIC;
-GRANT SELECT ON orphaned_packages TO PUBLIC;
-GRANT SELECT ON packages_summary TO PUBLIC;
-GRANT SELECT ON ubuntu_packages_summary TO PUBLIC;




More information about the Collab-qa-commits mailing list