Browse Source

[svn r13788] Removed setting "show_student_view" which is a duplicate of student_view_enable
Fixed the creation query of "templates" table to make sure it is parsed correctly

Yannick Warnier 17 years ago
parent
commit
7b50c3d603
2 changed files with 3 additions and 13 deletions
  1. 0 3
      main/install/dokeos_main.sql
  2. 3 10
      main/install/migrate-db-1.8.4-1.8.5-pre.sql

+ 0 - 3
main/install/dokeos_main.sql

@@ -418,7 +418,6 @@ INSERT INTO `settings_current` VALUES
 (7,'show_administrator_data',NULL,'radio','Platform','true','ShowAdministratorDataTitle','ShowAdministratorDataComment',NULL,NULL),
 (8,'homepage_view',NULL,'radio','Course','activity','HomepageViewTitle','HomepageViewComment',NULL,NULL),
 (9,'show_toolshortcuts',NULL,'radio','Course','false','ShowToolShortcutsTitle','ShowToolShortcutsComment',NULL,NULL),
-(10,'show_student_view',NULL,'radio','Course','false','ShowStudentViewTitle','ShowStudentViewComment',NULL,NULL),
 (11,'allow_group_categories',NULL,'radio','Course','false','AllowGroupCategories','AllowGroupCategoriesComment',NULL,NULL),
 (12,'server_type',NULL,'radio','Platform','production','ServerStatusTitle','ServerStatusComment',NULL,NULL),
 (13,'platformLanguage',NULL,'link','Languages','{PLATFORMLANGUAGE}','PlatformLanguageTitle','PlatformLanguageComment',NULL,NULL),
@@ -552,8 +551,6 @@ INSERT INTO `settings_options` VALUES
 (15,'homepage_view','3column','HomepageView3column'),
 (16,'show_toolshortcuts','true','Yes'),
 (17,'show_toolshortcuts','false','No'),
-(18,'show_student_view','true','Yes'),
-(19,'show_student_view','false','No'),
 (20,'allow_group_categories','true','Yes'),
 (21,'allow_group_categories','false','No'),
 (22,'server_type','production','ProductionServer'),

+ 3 - 10
main/install/migrate-db-1.8.4-1.8.5-pre.sql

@@ -20,16 +20,9 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('extendedprofile_registrationrequired', 'mydiplomas', 'checkbox', 'false', 'true', 'ExtendedProfileRegistrationRequiredTitle', ExtendedProfileRegistrationRequiredComment', NULL, 'MyDiplomas');
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('extendedprofile_registrationrequired', 'myteach', 'checkbox', 'false', 'true', 'ExtendedProfileRegistrationRequiredTitle', ExtendedProfileRegistrationRequiredComment', NULL, 'MyTeach');
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('extendedprofile_registrationrequired', 'mypersonalopenarea', 'checkbox', 'User', 'false', 'ExtendedProfileRegistrationRequiredTitle', ExtendedProfileRegistrationRequiredComment', NULL, 'MyPersonalOpenArea');
-
-CREATE TABLE `templates` (
-  `id` int(11) NOT NULL auto_increment,
-  `title` varchar(100) NOT NULL,
-  `description` varchar(250) NOT NULL,
-  `course_code` varchar(40) NOT NULL,
-  `user_id` int(11) NOT NULL,
-  `ref_doc` int(11) NOT NULL,
-  PRIMARY KEY  (`id`)
-);
+DELETE FROM settings_current WHERE variable='show_student_view';
+DELETE FROM settings_options WHERE variable='show_student_view';
+CREATE TABLE templates (id int NOT NULL auto_increment, title varchar(100) NOT NULL, description varchar(250) NOT NULL, course_code varchar(40) NOT NULL, user_id int NOT NULL, ref_doc int NOT NULL, PRIMARY KEY (id));
 
 -- xxSTATSxx
 ALTER TABLE `track_e_downloads` ADD INDEX ( `down_user_id` );