From 29ea7308b581f3727161d0a796fca4e9b1b66399 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 5 Jan 2009 19:35:50 +0100 Subject: [PATCH] [svn r17538] Removed useless size of INT (as newly added to the coding conventions) --- main/install/dokeos_main.sql | 2 +- main/install/migrate-db-1.8.5-1.8.6-pre.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/install/dokeos_main.sql b/main/install/dokeos_main.sql index ff8d539c46..383f4b4b64 100644 --- a/main/install/dokeos_main.sql +++ b/main/install/dokeos_main.sql @@ -1049,7 +1049,7 @@ CREATE TABLE sys_calendar ( ); CREATE TABLE IF NOT EXISTS system_template ( - id int(11) NOT NULL auto_increment, + id int UNSIGNED NOT NULL auto_increment, title varchar(250) NOT NULL, comment text NOT NULL, image varchar(250) NOT NULL, diff --git a/main/install/migrate-db-1.8.5-1.8.6-pre.sql b/main/install/migrate-db-1.8.5-1.8.6-pre.sql index 38577fcc11..2aa31ca93f 100644 --- a/main/install/migrate-db-1.8.5-1.8.6-pre.sql +++ b/main/install/migrate-db-1.8.5-1.8.6-pre.sql @@ -49,7 +49,7 @@ UPDATE TABLE settings_options SET display_text = 'NoWillDeletePermanently' WHERE INSERT INTO settings_options (variable, value, display_text) VALUES ('breadcrumbs_course_homepage','session_name_and_course_title','SessionNameAndCourseTitle'); INSERT INTO course_module (name, link, image, `row`, `column`, position) VALUES ('notebook','notebook/index.php','notebook.gif',2,1,'basic'); CREATE TABLE sys_calendar ( id int unsigned NOT NULL auto_increment, title varchar(200) NOT NULL, content text, start_date datetime NOT NULL default '0000-00-00 00:00:00', end_date datetime NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id)); -CREATE TABLE IF NOT EXISTS system_template (id int(11) NOT NULL auto_increment, title varchar(250) NOT NULL, comment text NOT NULL, image varchar(250) NOT NULL, content text NOT NULL, PRIMARY KEY (id)); +CREATE TABLE IF NOT EXISTS system_template (id int UNSIGNED NOT NULL auto_increment, title varchar(250) NOT NULL, comment text NOT NULL, image varchar(250) NOT NULL, content text NOT NULL, PRIMARY KEY (id)); -- xxSTATSxx ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';