-- After the database schema is created, the database is filled -- with default values. INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES ('العربية','arabic','ar','arabic',0), ('Asturianu','asturian','ast','asturian',0), ('Euskara','basque','eu','basque',1), ('বাংলা','bengali','bn','bengali',0), ('Bosanski','bosnian','bs','bosnian',1), ('Português do Brasil','brazilian','pt-BR','brazilian',1), ('Български','bulgarian','bg','bulgarian',1), ('Català','catalan','ca','catalan',0), ('Hrvatski','croatian','hr','croatian',0), ('Česky','czech','cs','czech',0), ('Dansk','danish','da','danish',0), ('دری','dari','prs','dari',0), ('Nederlands','dutch','nl','dutch',1), ('English','english','en','english',1), ('Esperanto','esperanto','eo','esperanto',0), ('Føroyskt', 'faroese', 'fo', 'faroese', 0), ('Suomi','finnish','fi','finnish',0), ('Français','french','fr','french',1), ('Furlan','friulian','fur','friulian',0), ('Galego','galician','gl','galician',1), ('ქართული','georgian','ka','georgian',0), ('Deutsch','german','de','german',1), ('Ελληνικά','greek','el','greek',1), ('עברית','hebrew','he','hebrew',0), ('हिन्दी','hindi','hi','hindi',0), ('Magyar','hungarian','hu','hungarian',1), ('Bahasa Indonesia','indonesian','id','indonesian',1), ('Italiano','italian','it','italian',1), ('日本語','japanese','ja','japanese',0), ('한국어','korean','ko','korean',0), ('Latviešu','latvian','lv','latvian',1), ('Lietuvių','lithuanian','lt','lithuanian',0), ('Македонски','macedonian','mk','macedonian',0), ('Bahasa Melayu','malay','ms','malay',0), ('Norsk','norwegian','no','norwegian',0), ('Occitan','occitan','oc','occitan',0), ('پښتو','pashto','ps','pashto',0), ('فارسی','persian','fa','persian',0), ('Polski','polish','pl','polish',1), ('Português europeu','portuguese','pt','portuguese',1), ('Runasimi','quechua_cusco','qu','quechua_cusco',0), ('Română','romanian','ro','romanian',0), ('Русский','russian','ru','russian',0), ('Srpski','serbian','sr','serbian',0), ('中文(简体)','simpl_chinese','zh','simpl_chinese',0), ('Slovenčina','slovak','sk','slovak',1), ('Slovenščina','slovenian','sl','slovenian',1), ('الصومالية','somali','so','somali',0), ('Español','spanish','es','spanish',1), ('Kiswahili','swahili','sw','swahili',0), ('Svenska','swedish','sv','swedish',0), ('Tagalog', 'tagalog', 'tl', 'tagalog',1), ('ไทย','thai','th','thai',0), ('Tibetan', 'tibetan', 'bo', 'tibetan', 0), ('繁體中文','trad_chinese','zh-TW','trad_chinese',0), ('Türkçe','turkish','tr','turkish',0), ('Українська','ukrainian','uk','ukrainian',0), ('Tiếng Việt','vietnamese','vi','vietnamese',0), ('isiXhosa', 'xhosa', 'xh', 'xhosa', 0), ('Yorùbá','yoruba','yo','yoruba',0); -- Set parent language to Spanish for all close-by languages, same for Italian, French, Portuguese and Chinese UPDATE language SET parent_id = 49 WHERE english_name = 'quechua_cusco'; UPDATE language SET parent_id = 49 WHERE english_name = 'galician'; UPDATE language SET parent_id = 49 WHERE english_name = 'esperanto'; UPDATE language SET parent_id = 49 WHERE english_name = 'catalan'; UPDATE language SET parent_id = 49 WHERE english_name = 'asturian'; UPDATE language SET parent_id = 28 WHERE english_name = 'friulian'; UPDATE language SET parent_id = 18 WHERE english_name = 'occitan'; UPDATE language SET parent_id = 40 WHERE english_name = 'brazilian'; UPDATE language SET parent_id = 45 WHERE english_name = 'trad_chinese'; INSERT INTO course_category (name, code, parent_id, tree_pos, children_count, auth_course_child, auth_cat_child) VALUES ('Language skills','LANG',NULL,1,0,'TRUE','TRUE'), ('PC Skills','PC',NULL,2,0,'TRUE','TRUE'), ('Projects','PROJ',NULL,3,0,'TRUE','TRUE'); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'legal_accept','Legal',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'already_logged_in','Already logged in',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'update_type','Update script type',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 10, 'tags','tags',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'rssfeeds','RSS',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'dashboard', 'Dashboard', 0, 0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 11, 'timezone', 'Timezone', 0, 0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) values (1, 4, 'mail_notify_invitation', 'MailNotifyInvitation',0,1,'1', NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) values (1, 4, 'mail_notify_message', 'MailNotifyMessage',0,1,'1', NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) values (1, 4, 'mail_notify_group_message','MailNotifyGroupMessage',0,1,'1', NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'user_chat_status','User chat status',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'google_calendar_url','Google Calendar URL',0,0, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, default_value, created_at) VALUES (2, 13, 'special_course', 'Special course', 1 , 1, '', NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (2, 10, 'tags', 'Tags', 1, 1, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (2, 19, 'video_url', 'VideoUrl', 1, 1, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (3, 16, 'image', 'Image', 1, 1, NOW()); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'captcha_blocked_until_date', 'Account locked until', 0, 0, NOW()); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (8, '1', 'AtOnce',1); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (8, '8', 'Daily',2); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (8, '0', 'No',3); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (9, '1', 'AtOnce',1); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (9, '8', 'Daily',2); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (9, '0', 'No',3); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (10, '1', 'AtOnce',1); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (10, '8', 'Daily',2); INSERT INTO extra_field_options (field_id, option_value, display_text, option_order) VALUES (10, '0', 'No',3); -- Adding the platform templates INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleCourseTitle', 'TemplateTitleCourseTitleDescription', 'coursetitle.gif', ' {CSS}

TITULUS 1
TITULUS 2

Chamilo logo



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', ' {CSS}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.
trainer



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', ' {CSS}
 trainer
Lorem ipsum dolor sit amet.
Vivamus a quam. 
Proin a est stibulum ante ipsum.



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleLeftRightList', 'TemplateTitleLeftRightListDescription', 'leftrightlist.gif', ' {CSS}
 Trainer
Lorem ipsum dolor sit amet. Convallis ut. Cras dui magna.
Vivamus a quam. 
Etiam lacinia stibulum ante.
Proin a est stibulum ante ipsum. Consectetuer adipiscing elit.



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleRightList', 'TemplateTitleRightListDescription', 'rightlist.gif', ' {CSS}
trainer
Convallis ut. Cras dui magna.
Etiam lacinia.
Consectetuer adipiscing elit.



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleDiagram', 'TemplateTitleDiagramDescription', 'diagram.gif', ' {CSS}

Etiam lacinia stibulum ante. Convallis ut. Cras dui magna.
Alaska chart
trainer



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleDesc', 'TemplateTitleCheckListDescription', 'description.gif', ' {CSS}
01
Lorem ipsum dolor sit amet


02
Ut enim ad minim veniam


03Duis aute irure dolor in reprehenderit


04Neque porro quisquam est
Gearbox



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleCycle', 'TemplateTitleCycleDescription', 'cyclechart.gif', ' {CSS}
arrow
Lorem ipsum Sed ut perspiciatis
  • dolor sit amet
  • consectetur adipisicing elit
  • sed do eiusmod tempor 
  • adipisci velit, sed quia non numquam
  • eius modi tempora incidunt ut labore et dolore magnam
  • ut enim ad minim veniam
  • quis nostrud exercitation
  • ullamco laboris nisi ut
  • Quis autem vel eum iure reprehenderit qui in ea
  • voluptate velit esse quam nihil molestiae consequatur,
arrow        



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', ' {CSS}
Lorem ipsum Perspiciatis Nemo enim
  • dolor sit amet
  • consectetur
  • adipisicing elit

arrow
  • ut labore
  • et dolore
  • magni dolores
arrow
  • neque porro
  • quisquam est
  • qui dolorem  




'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleTable', 'TemplateTitleCheckListDescription', 'table.gif', ' {CSS}

A table

City 2005 2006 2007 2008
Lima 10,40 8,95 9,19 9,76
New York 18,39 17,52 16,57 16,60
Barcelona 0,10 0,10 0,05 0,05
Paris 3,38 3,63 3,63 3,54

'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', ' {CSS}


image
trainer



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleVideo', 'TemplateTitleVideoDescription', 'video.gif', ' {CSS}


Lorem ipsum dolor sit amet

  • consectetur adipisicing elit
  • sed do eiusmod tempor incididunt
  • ut labore et dolore magna aliqua

Ut enim ad minim veniam

  • quis nostrud exercitation ullamco
  • laboris nisi ut aliquip ex ea commodo consequat
  • Excepteur sint occaecat cupidatat non proident



'); INSERT INTO system_template (title, comment, image, content) VALUES ('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', ' {CSS}



'); INSERT INTO user_friend_relation_type (id, title) VALUES (1,'SocialUnknow'), (2,'SocialParent'), (3,'SocialFriend'), (4,'SocialGoodFriend'), (5,'SocialEnemy'), (6,'SocialDeleted'); INSERT INTO skill (name, icon, description, short_code, access_url_id, updated_at) VALUES ('Root', '', '', 'root', 1, now()); INSERT INTO skill_rel_skill VALUES(1, 1, 0, 0, 0); INSERT INTO course_type (id, name) VALUES (1, 'All tools'); INSERT INTO course_type (id, name) VALUES (2, 'Entry exam'); INSERT INTO sequence_rule (description) VALUES ('If user completes 70% of an entity or group of items, he will be able to access another entity or group of items'); INSERT INTO sequence_condition (description, mat_op, param, act_true, act_false) VALUES ('<= 100%','<=', 100.0, 2, 0), ('>= 70%','>=', 70.0, 0, ''); INSERT INTO sequence_rule_condition VALUES (1,1,1), (2,1,2); INSERT INTO sequence_method (description,formula, assign, met_type, act_false) VALUES ('Add completed item','v#2 + $complete_items;', 2, 'add', ''), ('Update progress by division', 'v#2 / v#3 * 100;', 1, 'div', ''), ('Update items count', '$total_items;', 3,'update', ''), ('Enable success', '1;', 4, 'success', ''), ('Store success date', '(empty(v#5))? api_get_utc_datetime() : v#5;', 5, 'success', ''), ('Enable availability', '1;', 6, 'pre', ''), ('Store availability start date', '(empty(v#7))? api_get_utc_datetime() : v#7;', 7, 'pre', ''), ('Store availability end date', '(empty($available_end_date))? api_get_utc_datetime($available_end_date) : "0000-00-00 00:00:00";', 8, 'pre', ''), ('Increase the items count', 'v#3 + $total_items;', 3,'add', ''), ('Update completed items', '$complete_items;', 2,'update', ''), ('Update progress', '$complete_items / $total_items * 100;', 1, 'update', ''); INSERT INTO sequence_rule_method VALUES (1,1,1,1), (2,1,2,3), (3,1,3,0), (4,1,4,0), (5,1,5,0), (6,1,6,0), (7,1,7,0), (8,1,8,0), (9,1,9,2), (10,1,10,0), (11,1,11,0); INSERT INTO sequence_variable VALUES (1, 'Percentile progress', 'advance', 0.0), (2, 'Completed items', 'complete_items', 0), (3, 'Items count', 'total_items', 0), (4, 'Completed', 'success', 0), (5, 'Completion date', 'success_date', '0000-00-00 00:00:00'), (6, 'Available', 'available', 0), (7, 'Availability start date', 'available_start_date', '0000-00-00 00:00:00'), (8, 'Availability end date', 'available_end_date', '0000-00-00 00:00:00'); INSERT INTO sequence_formula VALUES (1,1,2), (2,2,2), (3,2,3), (4,2,1), (5,3,3), (6,4,4), (7,5,5), (8,6,6), (9,7,7), (10,8,8), (11,9,3), (12,10,2), (13,11,1); INSERT INTO sequence_valid VALUES (1,1,1), (2,1,2); INSERT INTO sequence_type_entity VALUES (1,'Lp', 'Learning Path','c_lp'), (2,'Quiz', 'Quiz and Tests','c_quiz'), (3,'LpItem', 'Items of a Learning Path','c_lp_item'); UPDATE user SET username_canonical = username; INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (1, 1, 'skype', 'Skype', 1, 1, now()), (1, 1, 'linkedin_url', 'LinkedInUrl', 1, 1, now()); INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 1); INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 2); INSERT INTO access_url_rel_course_category (access_url_id, course_category_id) VALUES (1, 3); INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at) VALUES (8, 10, 'tags', 'Tags', 1, 1, NOW()); INSERT INTO branch_sync (access_url_id, branch_name, unique_id, ssl_pub_key) VALUES (1, 'localhost', SHA1(UUID()), SHA1(UUID()));