From: skodak Date: Fri, 4 Feb 2005 00:43:45 +0000 (+0000) Subject: update code clarification - thanks Eloy! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=94b3dde15b594a256a3a376857380229dfe80a13;p=moodle.git update code clarification - thanks Eloy! --- diff --git a/mod/chat/db/mysql.php b/mod/chat/db/mysql.php index 9693b10a41..d38f0cf5fe 100644 --- a/mod/chat/db/mysql.php +++ b/mod/chat/db/mysql.php @@ -54,8 +54,8 @@ function chat_upgrade($oldversion) { } if ($oldversion < 2005020300) { - table_column('chat_users', '', 'course'); - table_column('chat_users', '', 'lang', 'varchar', '10', '', ''); + table_column('chat_users', '', 'course', 'integer', '10', 'unsigned', '0', 'not null', ''); + table_column('chat_users', '', 'lang' , 'varchar', '10', '' , '' , 'not null', ''); } return true; diff --git a/mod/chat/db/postgres7.php b/mod/chat/db/postgres7.php index 86586390eb..96caaca353 100644 --- a/mod/chat/db/postgres7.php +++ b/mod/chat/db/postgres7.php @@ -43,8 +43,8 @@ function chat_upgrade($oldversion) { } if ($oldversion < 2005020300) { - table_column('chat_users', '', 'course'); - table_column('chat_users', '', 'lang', 'varchar', '10', '', ''); + table_column('chat_users', '', 'course', 'integer', '10', 'unsigned', '0', 'not null', ''); + table_column('chat_users', '', 'lang' , 'varchar', '10', '' , '' , 'not null', ''); } return true;