Index: chatroom.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/chatroom/Attic/chatroom.install,v
retrieving revision 1.17.2.12
diff -u -p -r1.17.2.12 chatroom.install
--- chatroom.install	25 Jan 2007 01:49:01 -0000	1.17.2.12
+++ chatroom.install	3 May 2007 02:49:31 -0000
@@ -47,7 +47,7 @@ function chatroom_install() {
         ccid int(11) NOT NULL,
         uid int(11) NOT NULL,
         msg_type varchar(64) NOT NULL,
-        msg longtext NOT NULL,
+        msg text(512) NOT NULL,
         session_id varchar(255) NOT NULL,
         recipient varchar(255) NOT NULL,
         modified int(11) NOT NULL default '0',
@@ -224,3 +224,14 @@ function chatroom_update_2() {
   return $ret;
 }
 
+function chatroom_update_3() {
+  $ret = array();
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql('ALTER TABLE {chatroom_msg} CHANGE msg msg text(512) NOT NULL');
+      break;
+  }
+  return $ret;
+}
+
