Index: lams_common/db/sql/shaun/all.sql =================================================================== RCS file: /usr/local/cvsroot/lams_common/db/sql/shaun/Attic/all.sql,v diff -u -r1.6 -r1.7 --- lams_common/db/sql/shaun/all.sql 18 Sep 2006 01:54:47 -0000 1.6 +++ lams_common/db/sql/shaun/all.sql 25 Sep 2006 23:26:20 -0000 1.7 @@ -475,6 +475,30 @@ INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (185,67,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(30,null,'Russian Workspace',30,now(),now(),1); +insert into lams_workspace (workspace_id, default_fld_id, name) values (30,30,'Russian 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(30,'russian','russian','Dr','Russian','Test','30','Russian Ave',null,'Moscow',null,'Russia', +'0211111111','0211111112','0411111111','0211111113','russian@xx.os',0,'20041223',1,30,1,3,21); + +-- 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 (68, 2, 30); +INSERT INTO lams_user_organisation (user_organisation_id, organisation_id, user_id) VALUES (69, 3, 30); + +-- 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 (186,68,3); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (187,68,5); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (188,68,2); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (189,69,4); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (190,69,5); +INSERT INTO lams_user_organisation_role (user_organisation_role_id, user_organisation_id, role_id) VALUES (191,69,2); + + SET FOREIGN_KEY_CHECKS=1;