From a972fc8439f704f22d5ba920cf637993b3126f9c Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 28 Dec 2006 17:01:51 +1300 Subject: [PATCH] Fixed upgrade patch. --- dba/patches/1.1.7.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dba/patches/1.1.7.sql b/dba/patches/1.1.7.sql index b2c20b2d..73f861fc 100644 --- a/dba/patches/1.1.7.sql +++ b/dba/patches/1.1.7.sql @@ -8,6 +8,16 @@ ALTER TABLE relationship_type DROP COLUMN rt_inverse; ALTER TABLE relationship_type DROP COLUMN prefix_match; ALTER TABLE relationship_type DROP COLUMN rt_isgroup; +UPDATE relationship_type SET rt_name ='Administers', confers = 'A' WHERE rt_id = 1; +UPDATE relationship_type SET rt_name ='is Assistant to', confers = 'RW' WHERE rt_id = 2; +UPDATE relationship_type SET rt_name ='Can read from', confers = 'R' WHERE rt_id = 3; +UPDATE relationship_type SET rt_name ='Can see free/busy time of', confers = 'F' WHERE rt_id = 4; + +UPDATE relationship SET rt_id=1 WHERE rt_id=4; +UPDATE relationship SET rt_id=4 WHERE rt_id=5; + +DELETE FROM relationship_type WHERE rt_id = 5; + SELECT new_db_revision(1,1,7, 'July' ); COMMIT; ROLLBACK;