Browse Source

[svn r18417] Adding the Dokeos Database Version in setting current.

Julio Montoya 16 years ago
parent
commit
f3b446931b
2 changed files with 3 additions and 1 deletions
  1. 2 1
      main/install/dokeos_main.sql
  2. 1 0
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 2 - 1
main/install/dokeos_main.sql

@@ -653,7 +653,8 @@ VALUES
 ('profile','apikeys','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'ApiKeys', 0),
 ('allow_message_tool', NULL, 'radio', 'Tools', 'false', 'AllowMessageToolTitle', 'AllowMessageToolComment', NULL, NULL,0),
 ('allow_social_tool', NULL, 'radio', 'Tools', 'false', 'AllowSocialToolTitle', 'AllowSocialToolComment', NULL, NULL, 0),
-('allow_students_to_browse_courses',NULL,'radio','Platform','true','AllowStudentsToBrowseCoursesTitle','AllowStudentsToBrowseCoursesComment',NULL,NULL, 1);
+('allow_students_to_browse_courses',NULL,'radio','Platform','true','AllowStudentsToBrowseCoursesTitle','AllowStudentsToBrowseCoursesComment',NULL,NULL, 1),
+('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.18412','DokeosDatabaseVersion','',NULL,NULL,0); 
 UNLOCK TABLES;
 /*!40000 ALTER TABLE settings_current ENABLE KEYS */;
 

+ 1 - 0
main/install/migrate-db-1.8.5-1.8.6-pre.sql

@@ -108,6 +108,7 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_students_to_browse_courses', 'true', 'Yes');
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_students_to_browse_courses', 'false', 'No');
 ALTER TABLE user_field ADD field_filter tinyint default 0;
+INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable) VALUES ('dokeos_database_version',NULL,'textfield',NULL,'1.8.6.18412','DokeosDatabaseVersion','',NULL,NULL,1,0);
 
 -- xxSTATSxx
 ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';