Adjust / increase the relationship possibilities.

This commit is contained in:
Andrew McMillan 2006-12-11 14:22:47 +13:00
parent 8a6348e736
commit 2ac9691c96
2 changed files with 10 additions and 2 deletions

View File

@ -18,7 +18,7 @@ INSERT INTO role_member (user_no, role_no) VALUES(1, 1);
SELECT setval('usr_user_no_seq', (SELECT 1000 UNION SELECT user_no FROM usr ORDER BY 1 DESC LIMIT 1) );
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
VALUES( 1, 'Administers Group', TRUE, 'RW', '' );
VALUES( 1, 'Administers Group', TRUE, 'A', '' );
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
VALUES( 2, 'is Assistant to', FALSE, 'RW', '' );
@ -27,7 +27,7 @@ INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_matc
VALUES( 3, 'Is a member of group', TRUE, 'R', '' );
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
VALUES( 4, 'Administers Resource', FALSE, 'RW', '' );
VALUES( 4, 'Administers Resource', FALSE, 'A', '' );
-- Set the insert sequence to the next number, with a minimum of 1000
SELECT setval('relationship_type_rt_id_seq', (SELECT 10 UNION SELECT rt_id FROM relationship_type ORDER BY 1 DESC LIMIT 1) );

View File

@ -18,6 +18,14 @@ CREATE TABLE locks (
CREATE INDEX locks_dav_name_idx ON locks(dav_name);
GRANT SELECT,INSERT,UPDATE,DELETE ON locks TO general;
UPDATE relationship_type SET confers = 'A' WHERE rt_id = 1;
UPDATE relationship_type SET confers = 'RW' WHERE rt_id = 2;
UPDATE relationship_type SET confers = 'R' WHERE rt_id = 3;
UPDATE relationship_type SET confers = 'A' WHERE rt_id = 4;
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
VALUES( 5, 'Can see free/busy time of', FALSE, 'F', '' );
SELECT new_db_revision(1,1,6, 'June' );
COMMIT;
ROLLBACK;