mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Change the direction of the adminstrative assistant relationship type.
This commit is contained in:
parent
3158f7c513
commit
85c95607f0
@ -21,7 +21,7 @@ INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_matc
|
|||||||
VALUES( 1, 'Administers Group', TRUE, 'RW', '' );
|
VALUES( 1, 'Administers Group', TRUE, 'RW', '' );
|
||||||
|
|
||||||
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
||||||
VALUES( 2, 'Is Assisted by', FALSE, 'RW', '' );
|
VALUES( 2, 'is Assistant to', FALSE, 'RW', '' );
|
||||||
|
|
||||||
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
||||||
VALUES( 3, 'Is a member of group', TRUE, 'R', '' );
|
VALUES( 3, 'Is a member of group', TRUE, 'R', '' );
|
||||||
|
|||||||
13
dba/patches/1.1.5.sql
Normal file
13
dba/patches/1.1.5.sql
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
-- Starting to add internationalisation support
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
SELECT check_db_revision(1,1,4);
|
||||||
|
|
||||||
|
UPDATE relationship_types SET rt_name = 'is Assistant to' WHERE rt_id = 2 AND rt_name = 'Is Assisted by';
|
||||||
|
|
||||||
|
SELECT new_db_revision(1,1,5, 'May' );
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
ROLLBACK;
|
||||||
|
|
||||||
@ -103,4 +103,4 @@ CREATE TABLE relationship (
|
|||||||
);
|
);
|
||||||
|
|
||||||
GRANT SELECT,INSERT,UPDATE,DELETE ON relationship TO general;
|
GRANT SELECT,INSERT,UPDATE,DELETE ON relationship TO general;
|
||||||
SELECT new_db_revision(1,1,4, 'April' );
|
SELECT new_db_revision(1,1,5, 'May' );
|
||||||
|
|||||||
@ -45,8 +45,8 @@ INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 10, 200, 1 );
|
|||||||
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 11, 200, 1 );
|
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 11, 200, 1 );
|
||||||
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 30, 200, 1 );
|
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 30, 200, 1 );
|
||||||
|
|
||||||
-- Between a Manager and their PA
|
-- Between a PA and their Manager
|
||||||
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 20, 30, 2 );
|
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 30, 20, 2 );
|
||||||
|
|
||||||
-- Between a team
|
-- Between a team
|
||||||
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 20, 300, 3 );
|
INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 20, 300, 3 );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user