diff --git a/dba/base-data.sql b/dba/base-data.sql index c3b3e02f..f255b23d 100644 --- a/dba/base-data.sql +++ b/dba/base-data.sql @@ -17,5 +17,17 @@ INSERT INTO role_member (user_no, role_no) VALUES(1, 1); -- Set the insert sequence to the next number, with a minimum of 1000 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', '' ); + +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) ); diff --git a/dba/sample-data.sql b/dba/sample-data.sql index 57d14076..63cf82b6 100644 --- a/dba/sample-data.sql +++ b/dba/sample-data.sql @@ -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) );