Browse Source

updated variable platform charset to utf-8 when you migrate from 1.8.6.2 to 1.8.7

christian1827 15 years ago
parent
commit
74a218dbf5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/install/migrate-db-1.8.6.2-1.8.7-pre.sql

+ 2 - 1
main/install/migrate-db-1.8.6.2-1.8.7-pre.sql

@@ -73,9 +73,10 @@ ALTER TABLE course_rel_user DROP PRIMARY KEY, ADD PRIMARY KEY (course_code, user
 ALTER TABLE session_rel_user DROP PRIMARY KEY, ADD PRIMARY KEY (id_session, id_user, relation_type);
 
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_create_active_tools','course_progress','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseProgress', 0);
-
 INSERT INTO settings_options(variable,value,display_text) VALUES ('homepage_view','vertical_activity','HomepageViewVerticalActivity');
 
+UPDATE settings_current SET selected_value = 'UTF-8' WHERE variable = 'platform_charset';
+
 -- xxSTATSxx
 CREATE TABLE track_e_item_property(id int NOT NULL auto_increment PRIMARY KEY, course_id int NOT NULL, item_property_id int NOT NULL, title varchar(255), content text, progress int NOT NULL default 0, lastedit_date datetime NOT NULL default '0000-00-00 00:00:00', lastedit_user_id int  NOT NULL, session_id int NOT NULL default 0);
 ALTER TABLE track_e_item_property ADD INDEX (course_id, item_property_id, session_id);