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

lucas at alioth.debian.org lucas at alioth.debian.org
Wed Mar 18 20:00:25 UTC 2009


Author: lucas
Date: 2009-03-18 20:00:25 +0000 (Wed, 18 Mar 2009)
New Revision: 1411

Removed:
   udd/sql/ddtp.sql
Modified:
   udd/sql/setup.sql
   udd/sql/upgrade.sql
Log:
merged ddtp.sql into setup.sql and upgrade.sql ; removed it

Deleted: udd/sql/ddtp.sql
===================================================================
--- udd/sql/ddtp.sql	2009-03-17 07:05:53 UTC (rev 1410)
+++ udd/sql/ddtp.sql	2009-03-18 20:00:25 UTC (rev 1411)
@@ -1,30 +0,0 @@
--- DDTP Translations
-
-BEGIN;
-
-CREATE TABLE ddtp (
-       package      text,
-       distribution text,
-       release      text,
-       component    text,   -- == 'main' for the moment
-       version      text,   -- different versions for a package might exist because some archs
-                            -- might have problems with newer versions if a new version comes
-                            -- with a new description we might have different translations for
-                            -- a (package, distribution, release, component, language) key so
-                            -- we also need to store the version number of a package translation
-                            -- In case there are different versions with an identical description
-                            -- this field will hold the highest version number according to
-                            -- dpkg --compare-versions
-       language     text,
-       description  text,
-       long_description text,
-       md5sum       text,   -- md5 sum of the original English description as it is used
-                            -- in DDTP.  This is obtained via
-                            --   md5(description || E'\n' || long_description || E'\n')
-                            -- from packages table
-    PRIMARY KEY (package, distribution, release, component, version, language)
-);
-
-
-COMMIT;
-

Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql	2009-03-17 07:05:53 UTC (rev 1410)
+++ udd/sql/setup.sql	2009-03-18 20:00:25 UTC (rev 1411)
@@ -418,3 +418,28 @@
 GRANT SELECT ON all_sources TO PUBLIC;
 GRANT SELECT ON all_packages TO PUBLIC;
 GRANT SELECT ON all_bugs TO PUBLIC;
+
+CREATE TABLE ddtp (
+       package      text,
+       distribution text,
+       release      text,
+       component    text,   -- == 'main' for the moment
+       version      text,   -- different versions for a package might exist because some archs
+                            -- might have problems with newer versions if a new version comes
+                            -- with a new description we might have different translations for
+                            -- a (package, distribution, release, component, language) key so
+                            -- we also need to store the version number of a package translation
+                            -- In case there are different versions with an identical description
+                            -- this field will hold the highest version number according to
+                            -- dpkg --compare-versions
+       language     text,
+       description  text,
+       long_description text,
+       md5sum       text,   -- md5 sum of the original English description as it is used
+                            -- in DDTP.  This is obtained via
+                            --   md5(description || E'\n' || long_description || E'\n')
+                            -- from packages table
+    PRIMARY KEY (package, distribution, release, component, version, language)
+);
+
+GRANT SELECT ON ddtp TO PUBLIC;

Modified: udd/sql/upgrade.sql
===================================================================
--- udd/sql/upgrade.sql	2009-03-17 07:05:53 UTC (rev 1410)
+++ udd/sql/upgrade.sql	2009-03-18 20:00:25 UTC (rev 1411)
@@ -74,3 +74,28 @@
 ALTER TABLE migrations ALTER COLUMN unstable_version TYPE debversion;
 ALTER TABLE migrations ALTER COLUMN sync_version TYPE debversion;
 ALTER TABLE upload_history ALTER COLUMN version TYPE debversion;
+-- 2009-03-18
+CREATE TABLE ddtp (
+       package      text,
+       distribution text,
+       release      text,
+       component    text,   -- == 'main' for the moment
+       version      text,   -- different versions for a package might exist because some archs
+                            -- might have problems with newer versions if a new version comes
+                            -- with a new description we might have different translations for
+                            -- a (package, distribution, release, component, language) key so
+                            -- we also need to store the version number of a package translation
+                            -- In case there are different versions with an identical description
+                            -- this field will hold the highest version number according to
+                            -- dpkg --compare-versions
+       language     text,
+       description  text,
+       long_description text,
+       md5sum       text,   -- md5 sum of the original English description as it is used
+                            -- in DDTP.  This is obtained via
+                            --   md5(description || E'\n' || long_description || E'\n')
+                            -- from packages table
+    PRIMARY KEY (package, distribution, release, component, version, language)
+);
+
+GRANT SELECT ON ddtp TO PUBLIC;




More information about the Collab-qa-commits mailing list