mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Database changes for next release (unfinished).
This commit is contained in:
parent
fced59b0df
commit
5f8a8ca4bc
@ -71,6 +71,7 @@ CREATE TABLE calendar_item (
|
|||||||
percent_complete NUMERIC(7,2),
|
percent_complete NUMERIC(7,2),
|
||||||
tz_id TEXT REFERENCES time_zone( tz_id ),
|
tz_id TEXT REFERENCES time_zone( tz_id ),
|
||||||
status TEXT,
|
status TEXT,
|
||||||
|
completed TIMESTAMP WITH TIME ZONE,
|
||||||
dav_id INT8 UNIQUE,
|
dav_id INT8 UNIQUE,
|
||||||
collection_id INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
collection_id INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE,
|
||||||
|
|
||||||
|
|||||||
16
dba/patches/1.2.4.sql
Normal file
16
dba/patches/1.2.4.sql
Normal 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;
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user