From b4954dd54e2ce7b277a547628c44ef71a0b4eab4 Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Fri, 12 Feb 2010 11:58:30 -0500 Subject: [PATCH] updated dokeos_database_version field --- main/install/dokeos_main.sql | 4 ++-- main/install/migrate-db-1.8.6.2-1.8.7-pre.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/install/dokeos_main.sql b/main/install/dokeos_main.sql index 623c0991f8..b49a98e71e 100755 --- a/main/install/dokeos_main.sql +++ b/main/install/dokeos_main.sql @@ -739,7 +739,7 @@ VALUES ('show_courses_descriptions_in_catalog', NULL, 'radio', 'Course', 'true', 'ShowCoursesDescriptionsInCatalogTitle', 'ShowCoursesDescriptionsInCatalogComment', NULL, NULL, 1), ('allow_coach_to_edit_course_session',NULL,'radio','Course','false','AllowCoachsToEditInsideTrainingSessions','AllowCoachsToEditInsideTrainingSessionsComment',NULL,NULL, 0), ('show_glossary_in_extra_tools', NULL, 'radio', 'Course', 'false', 'ShowGlossaryInExtraToolsTitle', 'ShowGlossaryInExtraToolsComment', NULL, NULL,1), -('dokeos_database_version', NULL, 'textfield', NULL,'1.8.7.10004','DokeosDatabaseVersion','',NULL,NULL,0), +('dokeos_database_version', NULL, 'textfield', NULL,'1.8.7.10303','DokeosDatabaseVersion','',NULL,NULL,0), ('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1), ('go_to_course_after_login',NULL,'radio','Course','false','GoToCourseAfterLoginTitle','GoToCourseAfterLoginComment',NULL,NULL, 0), ('math_mimetex',NULL,'radio','Editor','false','MathMimetexTitle','MathMimetexComment',NULL,NULL, 0), @@ -2388,7 +2388,7 @@ name VARCHAR(255) NULL, description TEXT NULL, path VARCHAR(255) NOT NULL, controller VARCHAR(100) NOT NULL, -enable TINYINT(1) NOT NULL DEFAULT 1, +enable TINYINT NOT NULL DEFAULT 1, PRIMARY KEY(id) ); ALTER TABLE block ADD UNIQUE(path); diff --git a/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql b/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql index 62c78fb609..7d231a118a 100755 --- a/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql +++ b/main/install/migrate-db-1.8.6.2-1.8.7-pre.sql @@ -20,10 +20,10 @@ ALTER TABLE course_rel_user ADD COLUMN relation_type int NOT NULL default 0; INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable) VALUES ('course_create_active_tools','notebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Notebook',1,0); INSERT INTO course_module (name, link, image, `row`, `column`, position) VALUES ('notebook','notebook/index.php','notebook.gif',2,1,'basic'); -UPDATE settings_current SET selected_value = '1.8.7.10004' WHERE variable = 'dokeos_database_version'; +UPDATE settings_current SET selected_value = '1.8.7.10303' WHERE variable = 'dokeos_database_version'; ALTER TABLE course DROP PRIMARY KEY , ADD UNIQUE KEY code (code); ALTER TABLE course ADD id int NOT NULL auto_increment PRIMARY KEY FIRST; -CREATE TABLE block (id INT NOT NULL auto_increment, name VARCHAR(255) NULL, description TEXT NULL, path VARCHAR(255) NOT NULL, controller VARCHAR(100) NOT NULL, enable TINYINT(1) NOT NULL default 1, PRIMARY KEY(id)); +CREATE TABLE block (id INT NOT NULL auto_increment, name VARCHAR(255) NULL, description TEXT NULL, path VARCHAR(255) NOT NULL, controller VARCHAR(100) NOT NULL, enable TINYINT NOT NULL default 1, PRIMARY KEY(id)); ALTER TABLE block ADD UNIQUE(path); INSERT INTO user_field(field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES(1, 'dashboard', 'dashboard', 0, 0); INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('show_tabs', 'dashboard', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsDashboard', 1);