New patches for next upgrade.

This commit is contained in:
Andrew McMillan 2010-05-19 23:49:50 +12:00
parent 9002e974fc
commit 06abe8bd2e
2 changed files with 29 additions and 3 deletions

View File

@ -336,13 +336,20 @@ CREATE TABLE addressbook_resource (
org TEXT, org TEXT,
url TEXT, url TEXT,
fburl TEXT, fburl TEXT,
caladruri TEXT,
caluri TEXT caluri TEXT
); );
CREATE TABLE addressbook_address_adr ( CREATE TABLE addressbook_address_adr (
dav_id INT8 NOT NULL REFERENCES caldav_data(dav_id) ON UPDATE CASCADE ON DELETE CASCADE, dav_id INT8 NOT NULL REFERENCES caldav_data(dav_id) ON UPDATE CASCADE ON DELETE CASCADE,
type TEXT, type TEXT,
adr TEXT, box_no TEXT,
unit_no TEXT,
street_address TEXT,
locality TEXT,
region TEXT,
postcode TEXT,
country TEXT,
property TEXT -- The full text of the property property TEXT -- The full text of the property
); );
@ -369,7 +376,7 @@ CREATE TABLE calendar_alarm (
description TEXT, description TEXT,
next_trigger TIMESTAMP WITH TIME ZONE, next_trigger TIMESTAMP WITH TIME ZONE,
component TEXT, -- The full text of the component component TEXT, -- The full text of the component
trigger_state trigger_state CHAR DEFAULT 'N' -- 'N' => 'New/Needs setting', 'A' = 'Active', 'O' = 'Old' trigger_state CHAR DEFAULT 'N' -- 'N' => 'New/Needs setting', 'A' = 'Active', 'O' = 'Old'
); );
CREATE TABLE calendar_attendee ( CREATE TABLE calendar_attendee (
@ -381,6 +388,7 @@ CREATE TABLE calendar_attendee (
role TEXT, role TEXT,
rsvp BOOLEAN, rsvp BOOLEAN,
property TEXT, -- The full text of the property property TEXT, -- The full text of the property
attendee_state TEXT, -- Internal DAViCal processing state
PRIMARY KEY ( dav_id, attendee ) PRIMARY KEY ( dav_id, attendee )
); );

View File

@ -10,9 +10,27 @@ SELECT check_db_revision(1,2,8);
-- Kind of important to have these as first-class citizens -- Kind of important to have these as first-class citizens
ALTER TABLE addressbook_resource ADD COLUMN fburl TEXT DEFAULT NULL; ALTER TABLE addressbook_resource ADD COLUMN fburl TEXT DEFAULT NULL;
ALTER TABLE addressbook_resource ADD COLUMN caluri TEXT DEFAULT NULL; ALTER TABLE addressbook_resource ADD COLUMN caluri TEXT DEFAULT NULL;
ALTER TABLE addressbook_resource ADD COLUMN caladruri TEXT DEFAULT NULL;
DROP TABLE addressbook_address_adr CASCADE;
CREATE TABLE addressbook_address_adr (
dav_id INT8 NOT NULL REFERENCES caldav_data(dav_id) ON UPDATE CASCADE ON DELETE CASCADE,
type TEXT,
box_no TEXT,
unit_no TEXT,
street_address TEXT,
locality TEXT,
region TEXT,
postcode TEXT,
country TEXT,
property TEXT -- The full text of the property
);
-- 'N' => 'New/Needs setting', 'A' = 'Active', 'O' = 'Old' -- 'N' => 'New/Needs setting', 'A' = 'Active', 'O' = 'Old'
ALTER TABLE calendar_alarm ADD COLUMN trigger_state trigger_state CHAR DEFAULT 'N'; ALTER TABLE calendar_alarm ADD COLUMN trigger_state CHAR DEFAULT 'N';
-- Internal DAViCal calendar state
ALTER TABLE calendar_attendee ADD COLUMN attendee_state TEXT;
SELECT new_db_revision(1,2,9, 'Septembre' ); SELECT new_db_revision(1,2,9, 'Septembre' );