From cdc23ea7328517e8bfbc4cad1630a9c70af061f5 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 19 Sep 2011 08:42:28 +1200 Subject: [PATCH] Add etag to timezone table. --- dba/patches/1.2.11.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dba/patches/1.2.11.sql b/dba/patches/1.2.11.sql index d0a5092e..50ed3741 100644 --- a/dba/patches/1.2.11.sql +++ b/dba/patches/1.2.11.sql @@ -10,6 +10,7 @@ CREATE TABLE timezones ( olson_name TEXT, active BOOLEAN, last_modified TIMESTAMP DEFAULT current_timestamp, + etag TEXT, vtimezone TEXT ); @@ -29,8 +30,8 @@ CREATE TABLE tz_localnames ( -- Let's assume that all timezone definitions currently present are old, and -- we can find newer ones. We don't really want the service feeding them out -- so we'll mark them inactive as well. -INSERT INTO timezones (tzid, olson_name, active, last_modified, vtimezone ) - SELECT tz_id, tz_locn, false, '1970-01-01T00:00:00Z', tz_spec FROM time_zone; +INSERT INTO timezones (tzid, olson_name, active, last_modified, vtimezone, etag ) + SELECT tz_id, tz_locn, false, '1970-01-01T00:00:00Z', tz_spec, 'import' FROM time_zone; INSERT INTO tz_aliases (our_tzno, tzalias) SELECT timezones.our_tzno, tz_locn FROM time_zone LEFT JOIN timezones ON (tz_id = tzid) WHERE tz_locn IS NOT NULL AND tz_locn != '';