Browse Source

[svn r17270] changes logic - removed type datetime and added int - (partial FS#3249)

Isaac Flores 16 years ago
parent
commit
d28e47c9e5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      main/install/dokeos_main.sql
  2. 1 1
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 1 - 1
main/install/dokeos_main.sql

@@ -1025,7 +1025,7 @@ CREATE TABLE gradebook_linkeval_log (
 	id_linkeval_log int NOT NULL,
 	name text,
 	description text,
-	date_log datetime default '0000-00-00 00:00:00',
+	date_log int,
 	weight smallint default NULL,
 	visible tinyint default NULL,
 	type varchar(20) NOT NULL,

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

@@ -36,7 +36,7 @@ INSERT INTO course_module (name, link, image, `row`, `column`, position) VALUES
 INSERT INTO course_module (name, link, image, `row`, `column`, position) VALUES ('gradebook','gradebook/index.php','gradebook.gif',2,2,'basic');
 ALTER TABLE gradebook_category ADD session_id int DEFAULT NULL;
 CREATE TABLE gradebook_result_log (id int NOT NULL auto_increment,id_result int NOT NULL,user_id int NOT NULL,evaluation_id int NOT NULL,date_log datetime default '0000-00-00 00:00:00',score float unsigned default NULL,PRIMARY KEY(id));
-CREATE TABLE gradebook_linkeval_log (id int NOT NULL auto_increment,id_linkeval_log int NOT NULL,name text,description text,date_log datetime default '0000-00-00 00:00:00',weight smallint default NULL,visible tinyint default NULL,type varchar(20) NOT NULL,user_id_log int NOT NULL,PRIMARY KEY  (id));
+CREATE TABLE gradebook_linkeval_log (id int NOT NULL auto_increment,id_linkeval_log int NOT NULL,name text,description text,date_log int,weight smallint default NULL,visible tinyint default NULL,type varchar(20) NOT NULL,user_id_log int NOT NULL,PRIMARY KEY  (id));
 INSERT INTO course_module (name, link, image, `row`, `column`, position) VALUES ('glossary','glossary/index.php','glossary.gif',2,1,'basic');
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable) VALUES ('course_create_active_tools','glossary','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Glossary',1,0);
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url, access_url_changeable) VALUES ('allow_users_to_create_courses',NULL,'radio','Course','true','AllowUsersToCreateCoursesTitle','AllowUsersToCreateCoursesComment',NULL,NULL,1,0);