From bbcd6a82acc9e7df8144917ecdc7ce61ca22b369 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Fri, 26 Oct 2007 09:50:45 +1300 Subject: [PATCH] Bugger, fix up the DB patches. --- dba/patches/1.1.10.sql | 13 +++++++++++++ dba/patches/1.1.9.sql | 8 ++++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 dba/patches/1.1.10.sql diff --git a/dba/patches/1.1.10.sql b/dba/patches/1.1.10.sql new file mode 100644 index 00000000..0dcefe57 --- /dev/null +++ b/dba/patches/1.1.10.sql @@ -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; + diff --git a/dba/patches/1.1.9.sql b/dba/patches/1.1.9.sql index e3d49113..056cd100 100644 --- a/dba/patches/1.1.9.sql +++ b/dba/patches/1.1.9.sql @@ -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; \ No newline at end of file