Browse Source

Removed settings modifying queries that were breaking upgrades - In general terms, upgrades should *never* modify platform settings without the admin consent, and the positive selected_value is 'true', not 1

Yannick Warnier 13 years ago
parent
commit
6feb09cc5e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      main/install/migrate-db-1.8.7-1.8.8-pre.sql

+ 1 - 5
main/install/migrate-db-1.8.7-1.8.8-pre.sql

@@ -32,14 +32,11 @@ ALTER TABLE sys_calendar ADD COLUMN access_url_id INT  NOT NULL default 1;
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('users_copy_files', NULL, 'radio', 'Tools', 'true', 'AllowUsersCopyFilesTitle','AllowUsersCopyFilesComment', NULL,NULL, 1);
 INSERT INTO settings_options (variable, value, display_text) VALUES ('users_copy_files', 'true', 'Yes');
 INSERT INTO settings_options (variable, value, display_text) VALUES ('users_copy_files', 'false', 'No');
-UPDATE settings_current SET selected_value='1' WHERE variable='allow_social_tool';
-UPDATE settings_current SET selected_value='1' WHERE variable='allow_message_tool';
 
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_validation', NULL, 'radio', 'Platform', 'false', 'EnableCourseValidation', 'EnableCourseValidationComment', NULL, NULL, 1);
 INSERT INTO settings_options (variable, value, display_text) VALUES ('course_validation', 'true', 'Yes');
 INSERT INTO settings_options (variable, value, display_text) VALUES ('course_validation', 'false', 'No');
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_validation_terms_and_conditions_url', NULL, 'textfield', 'Platform', '', 'CourseValidationTermsAndConditionsLink', 'CourseValidationTermsAndConditionsLinkComment', NULL, NULL, 1);
-UPDATE settings_current SET selected_value='1' WHERE variable='advanced_filemanager';
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication',NULL,'radio','Security','false','EnableSSOTitle','EnableSSOComment',NULL,NULL,1);
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication_domain',NULL,'textfield','Security','','SSOServerDomainTitle','SSOServerDomainComment',NULL,NULL,1);
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication_auth_uri',NULL,'textfield','Security','/?q=user','SSOServerAuthURITitle','SSOServerAuthURIComment',NULL,NULL,1);
@@ -92,7 +89,6 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
 
 ALTER TABLE personal_agenda ADD PRIMARY KEY (id);
 
-UPDATE settings_current SET selected_value='1' WHERE variable='more_buttons_maximized_mode';
 
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_insertHtml',NULL,'radio','Editor','true','EnabledInsertHtmlTitle','EnabledInsertHtmlComment',NULL,NULL, 0);
 INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_insertHtml', 'true', 'Yes');
@@ -191,7 +187,7 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_nan
 
 ALTER TABLE gradebook_evaluation ADD COLUMN locked int NOT NULL DEFAULT 0;
 
-UPDATE settings_current SET selected_value = '1.8.8.14518' WHERE variable = 'chamilo_database_version';
+UPDATE settings_current SET selected_value = '1.8.8.14911' WHERE variable = 'chamilo_database_version';
 
 -- xxSTATSxx
 ALTER TABLE track_e_exercices ADD COLUMN orig_lp_item_view_id INT NOT NULL DEFAULT 0;