From 94b3dde15b594a256a3a376857380229dfe80a13 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 4 Feb 2005 00:43:45 +0000 Subject: [PATCH] update code clarification - thanks Eloy! --- mod/chat/db/mysql.php | 4 ++-- mod/chat/db/postgres7.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.5