Database changes for next release (unfinished).

This commit is contained in:
Andrew McMillan 2008-10-24 18:46:30 +13:00
parent fced59b0df
commit 5f8a8ca4bc
2 changed files with 17 additions and 0 deletions

View File

@ -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,

16
dba/patches/1.2.4.sql Normal file
View File

@ -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;