# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /home/sbatman/workspace-pulse/ipn-new/modules/thirdpart/chatroom
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: chatroom.install
--- chatroom.install Base (BASE)
+++ chatroom.install Locally Modified (Based On LOCAL)
@@ -213,6 +213,58 @@
     ),
     'primary key' => array('ccid', 'sid'),
   );
+
+    $schema['chatroom_msg_archive'] = array(
+	'description' => t('TODO: please describe this table!'),
+	'fields' => array(
+	'cmid' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'serial',
+	'not null' => TRUE,
+	),
+	'ccid' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'int',
+	'not null' => TRUE,
+	),
+	'uid' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'int',
+	'not null' => TRUE,
+	),
+	'msg_type' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'varchar',
+	'length' => '64',
+	'not null' => TRUE,
+	),
+	'msg' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'text',
+	'not null' => FALSE,
+	),
+	'session_id' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'varchar',
+	'length' => '64',
+	'not null' => TRUE,
+	),
+	'recipient' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'varchar',
+	'length' => '255',
+	'not null' => TRUE,
+	),
+	'modified' => array(
+	'description' => t('TODO: please describe this field!'),
+	'type' => 'int',
+	'not null' => TRUE,
+	),
+	),
+	'primary key' => array('cmid'),
+    );
+
+
   return $schema;
 }
 
@@ -393,6 +445,26 @@
   return array();
 }
 
+/**
+ * Implementation of hook_update_N().
+ *
+ * Create the chatroom_msg_archive_table
+ */
+function chatroom_update_6() {
+    $ret[] = update_sql('create table `chatroom_msg_archive` (
+	`cmid` double ,
+	`ccid` double ,
+	`uid` double ,
+	`msg_type` varchar (192),
+	`msg` blob ,
+	`session_id` varchar (192),
+	`recipient` varchar (765),
+	`modified` double
+	); ');
+    return $ret;
+}
+
+
 function chatroom_update_6200() {
   // TODO: schema updates from #5
   return array();
