diff --git a/dba/davical.sql b/dba/davical.sql index e744e6c6..8c3ff320 100644 --- a/dba/davical.sql +++ b/dba/davical.sql @@ -334,7 +334,9 @@ CREATE TABLE addressbook_resource ( n TEXT, -- Name Surname;First names note TEXT, org TEXT, - url TEXT + url TEXT, + fburl TEXT, + caluri TEXT ); CREATE TABLE addressbook_address_adr ( @@ -366,7 +368,8 @@ CREATE TABLE calendar_alarm ( summary TEXT, description TEXT, 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' ); CREATE TABLE calendar_attendee ( @@ -381,4 +384,4 @@ CREATE TABLE calendar_attendee ( PRIMARY KEY ( dav_id, attendee ) ); -SELECT new_db_revision(1,2,8, 'Août' ); +SELECT new_db_revision(1,2,9, 'Septembre' ); diff --git a/dba/patches/1.2.9.sql b/dba/patches/1.2.9.sql new file mode 100644 index 00000000..5cd347ba --- /dev/null +++ b/dba/patches/1.2.9.sql @@ -0,0 +1,21 @@ + +-- This database update adds support for tickets to be handed out to grant +-- specific access to a collection or individual resource, as read-only or +-- read-write. A table is also added to manage WebDAV binding, in line +-- with http://tools.ietf.org/html/draft-ietf-webdav-bind. + +BEGIN; +SELECT check_db_revision(1,2,8); + +-- 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 caluri TEXT DEFAULT NULL; + +-- 'N' => 'New/Needs setting', 'A' = 'Active', 'O' = 'Old' +ALTER TABLE calendar_alarm ADD COLUMN trigger_state trigger_state CHAR DEFAULT 'N'; + +SELECT new_db_revision(1,2,9, 'Septembre' ); + +COMMIT; +ROLLBACK; +