mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-30 16:00:25 +00:00
Adjust / increase the relationship possibilities.
This commit is contained in:
parent
8a6348e736
commit
2ac9691c96
@ -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) );
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user