Index: lams_common/db/sql/insert_types_data.sql =================================================================== diff -u -r4a2728da7ea82a98b92d3a8b08feb6efa4023b7d -r7cad4df1e3d94c94f0633d06a7e05f4d979dfcc7 --- lams_common/db/sql/insert_types_data.sql (.../insert_types_data.sql) (revision 4a2728da7ea82a98b92d3a8b08feb6efa4023b7d) +++ lams_common/db/sql/insert_types_data.sql (.../insert_types_data.sql) (revision 7cad4df1e3d94c94f0633d06a7e05f4d979dfcc7) @@ -210,6 +210,8 @@ VALUES (21, 'ru', 'RU', 'Русский', 'LTR'); INSERT INTO lams_supported_locale (locale_id, language_iso_code, country_iso_code, description, direction) VALUES (22, 'vi', 'VN', 'Tiếng Việt', 'LTR'); +INSERT INTO lams_supported_locale (locale_id, language_iso_code, country_iso_code, description, direction) +VALUES (23, 'zh', 'TW', 'Chinese (Taiwan)', 'LTR'); -- which current tool supports the old 1.0.x tools? INSERT INTO lams_tool_import_support VALUES (1, 'lafrum11', 'messageboard'); Index: lams_common/db/sql/shaun/all.sql =================================================================== diff -u -r64c626e682f60c296a84a2d2218a81ac9c8f8979 -r7cad4df1e3d94c94f0633d06a7e05f4d979dfcc7 --- lams_common/db/sql/shaun/all.sql (.../all.sql) (revision 64c626e682f60c296a84a2d2218a81ac9c8f8979) +++ lams_common/db/sql/shaun/all.sql (.../all.sql) (revision 7cad4df1e3d94c94f0633d06a7e05f4d979dfcc7) @@ -523,6 +523,29 @@ INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (197,71,2); +-- need a new workspace_id and the name changes for each user. +insert into lams_workspace_folder(workspace_folder_id,parent_folder_id,name,user_id,create_date_time,last_modified_date_time,lams_workspace_folder_type_id) +values(32,null,'Chinese Workspace',32,now(),now(),1); +insert into lams_workspace (workspace_id, default_fld_id, name) values (32,32,'Chinese Test'); + +insert into lams_user(user_id,login,password,title,first_name,last_name,address_line_1,address_line_2,address_line_3,city,state,country, +day_phone,evening_phone,mobile_phone,fax,email,disabled_flag,create_date,authentication_method_id,workspace_id, flash_theme_id,html_theme_id,locale_id) +values(32,'chinesetw','chinesetw','Dr','Chinese','Test','32','Chinese Ave',null,'Taipei',null,'Taiwan', +'0211111111','0211111112','0411111111','0211111113','vietnamese@xx.os',0,'20041223',1,32,1,2,23); + +-- need a new user_organisation_id for each row, user_id must match user_id created in the lams_user +-- belongs to course Playpen, Class Everybody +INSERT INTO lams_user_organisation (user_organisation_id, organisation_id, user_id) VALUES (72, 2, 32); +INSERT INTO lams_user_organisation (user_organisation_id, organisation_id, user_id) VALUES (73, 3, 32); + +-- need a new user_organisation_role_id for each row, use the same role_ids (3,5,2) for author, learner, teacher +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (198,72,3); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (199,72,5); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (200,72,2); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (201,73,4); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (202,73,5); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (203,73,2); + SET FOREIGN_KEY_CHECKS=1;