diff --git a/dba/base-data.sql b/dba/base-data.sql index 50ffa35c..fb2d13c9 100644 --- a/dba/base-data.sql +++ b/dba/base-data.sql @@ -21,7 +21,7 @@ INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_matc 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', '' ); + VALUES( 2, 'is Assistant to', FALSE, 'RW', '' ); INSERT INTO relationship_type ( rt_id, rt_name, rt_isgroup, confers, prefix_match ) VALUES( 3, 'Is a member of group', TRUE, 'R', '' ); diff --git a/dba/patches/1.1.5.sql b/dba/patches/1.1.5.sql new file mode 100644 index 00000000..6d4f3525 --- /dev/null +++ b/dba/patches/1.1.5.sql @@ -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; + diff --git a/dba/rscds.sql b/dba/rscds.sql index 998af12b..224f8c73 100644 --- a/dba/rscds.sql +++ b/dba/rscds.sql @@ -103,4 +103,4 @@ CREATE TABLE relationship ( ); 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' ); diff --git a/dba/sample-data.sql b/dba/sample-data.sql index 63cf82b6..eade87e2 100644 --- a/dba/sample-data.sql +++ b/dba/sample-data.sql @@ -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( 30, 200, 1 ); --- Between a Manager and their PA -INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 20, 30, 2 ); +-- Between a PA and their Manager +INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 30, 20, 2 ); -- Between a team INSERT INTO relationship ( from_user, to_user, rt_id ) VALUES( 20, 300, 3 );