mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
The base data should include some basic relationship_type records.
This commit is contained in:
1 parent
619231028c
commit
e3cda6ec20
2 files changed
+12
-12
No files matched your search
@@ -33,18 +33,6 @@ INSERT INTO role_member (user_no, role_no) VALUES( 300, 2);
|
||||
SELECT setval('usr_user_no_seq', 1000);
|
||||
|
||||
|
||||
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
||||
VALUES( 1, 'Administers Group', TRUE, 'RW', '' );
|
||||
|
||||
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
||||
VALUES( 2, 'Is Assisted by', FALSE, 'RW', '' );
|
||||
|
||||
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
||||
VALUES( 3, 'Is a member of group', FALSE, 'R', '' );
|
||||
|
||||
INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match )
|
||||
VALUES( 4, 'Administers Resource', FALSE, 'RW', '' );
|
||||
|
||||
-- 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) );
|
||||
|
||||
|
||||
Reference in new issue
Block a user