[Collab-qa-commits] r2146 - udd/sql
Andreas Tille
tille at alioth.debian.org
Sun Feb 12 16:49:03 UTC 2012
Author: tille
Date: 2012-02-12 16:49:03 +0000 (Sun, 12 Feb 2012)
New Revision: 2146
Modified:
udd/sql/setup.sql
udd/sql/upgrade.sql
Log:
House keeping table to enable deciding whether a translation needs to be imported
Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql 2012-02-12 16:46:00 UTC (rev 2145)
+++ udd/sql/setup.sql 2012-02-12 16:49:03 UTC (rev 2146)
@@ -634,6 +634,19 @@
);
GRANT SELECT ON derivatives_descriptions TO PUBLIC;
+-- Add house keeping table to enable deciding whether some translation file
+-- was imported previousely and thus reducing workload on UDD host in
+-- preventing doing duplicate work
+CREATE TABLE description_imports (
+ release text,
+ component text,
+ language text,
+ translationfile text,
+ translationfile_sha1 text,
+ import_date timestamp default now(),
+ PRIMARY KEY (release, component, language)
+);
+
-- active_dds view
CREATE VIEW active_dds AS
SELECT DISTINCT carnivore_login.id, login
Modified: udd/sql/upgrade.sql
===================================================================
--- udd/sql/upgrade.sql 2012-02-12 16:46:00 UTC (rev 2145)
+++ udd/sql/upgrade.sql 2012-02-12 16:49:03 UTC (rev 2146)
@@ -400,3 +400,17 @@
SELECT * FROM packages
UNION ALL SELECT * FROM ubuntu_packages
UNION ALL SELECT * FROM derivatives_packages;
+
+-- 2012-02-12
+-- Add house keeping table to enable deciding whether some translation file
+-- was imported previousely and thus reducing workload on UDD host in
+-- preventing doing duplicate work
+CREATE TABLE description_imports (
+ release text,
+ component text,
+ language text,
+ translationfile text,
+ translationfile_sha1 text,
+ import_date timestamp default now(),
+ PRIMARY KEY (release, component, language)
+);
More information about the Collab-qa-commits
mailing list