diff --git a/dba/davical.sql b/dba/davical.sql index 57dd2783..b1a40471 100644 --- a/dba/davical.sql +++ b/dba/davical.sql @@ -71,6 +71,7 @@ CREATE TABLE calendar_item ( percent_complete NUMERIC(7,2), tz_id TEXT REFERENCES time_zone( tz_id ), status TEXT, + completed TIMESTAMP WITH TIME ZONE, dav_id INT8 UNIQUE, collection_id INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE, diff --git a/dba/patches/1.2.4.sql b/dba/patches/1.2.4.sql new file mode 100644 index 00000000..868d2814 --- /dev/null +++ b/dba/patches/1.2.4.sql @@ -0,0 +1,16 @@ + +-- This database update provides new tables for the Principal, for +-- a consistent dav_resource which a principal, collection or calendar_item +-- all inherit from. + +BEGIN; +SELECT check_db_revision(1,2,3); + +-- Add a column to hold the 'COMPLETED' property from the caldav_data +ALTER TABLE calendar_item ADD COLUMN completed TIMESTAMP WITH TIME ZONE; + +SELECT new_db_revision(1,2,4, 'Avril' ); + +COMMIT; +ROLLBACK; +