Bugger, fix up the DB patches.

This commit is contained in:
Andrew Ruthven 2007-10-26 09:50:45 +13:00 committed by Andrew Ruthven
parent 06431170c8
commit bbcd6a82ac
2 changed files with 17 additions and 4 deletions

13
dba/patches/1.1.10.sql Normal file
View File

@ -0,0 +1,13 @@
-- Make sure that class is set to something, by default PUBLIC.
-- According to RFC2445, 4.8.1.3.
BEGIN;
SELECT check_db_revision(1,1,9);
UPDATE calendar_item SET class = 'PUBLIC' WHERE class IS NULL;
SELECT new_db_revision(1,1,10, 'October' );
COMMIT;
ROLLBACK;

View File

@ -1,13 +1,13 @@
-- Make sure that class is set to something, by default PUBLIC.
-- According to RFC2445, 4.8.1.3.
-- Adding a primary key to the calendar_item table
BEGIN;
SELECT check_db_revision(1,1,8);
UPDATE calendar_item SET class = 'PUBLIC' WHERE class IS NULL;
ALTER TABLE calendar_item ADD PRIMARY KEY (user_no, dav_name );
SELECT new_db_revision(1,1,9, 'October' );
SELECT new_db_revision(1,1,9, 'September' );
COMMIT;
ROLLBACK;
VACUUM FULL ANALYZE;