From 081a47f7ee4651286f57c97e634e43c79c321b9a Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 21 Dec 2009 22:32:27 +1300 Subject: [PATCH] Kill the schedule-in/out box on upgrade so they are recreated. --- dba/patches/1.2.6.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dba/patches/1.2.6.sql b/dba/patches/1.2.6.sql index 77751193..53d268fe 100644 --- a/dba/patches/1.2.6.sql +++ b/dba/patches/1.2.6.sql @@ -563,6 +563,8 @@ INSERT INTO grants ( by_principal, to_principal, privileges, is_group ) JOIN principal pto ON(pto.user_no=f.user_no) WHERE rt_id < 4 AND pby.type_id < 3; +-- It's always safe to kill these collections, so they will be recreated with the correct resourcetype +DELETE FROM collection WHERE dav_name ~ E'/\.(in|out)/$'; SELECT new_db_revision(1,2,6, 'Juin' );