From 2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 04 Sep 2006 08:26:30 -0400
Subject: [PATCH] Little improvements for message parsing and encoding

---
 SQL/mysql.initial.sql |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql
index acaac7b..716268b 100644
--- a/SQL/mysql.initial.sql
+++ b/SQL/mysql.initial.sql
@@ -1,5 +1,5 @@
 -- RoundCube Webmail initial database structure
--- Version 0.1a
+-- Version 0.1-beta2
 -- 
 
 -- --------------------------------------------------------
@@ -19,7 +19,7 @@
   KEY `user_id` (`user_id`),
   KEY `cache_key` (`cache_key`),
   KEY `session_id` (`session_id`)
-) TYPE=MyISAM;
+);
 
 -- --------------------------------------------------------
 
@@ -39,7 +39,7 @@
   `vcard` text NOT NULL,
   PRIMARY KEY  (`contact_id`),
   KEY `user_id` (`user_id`)
-) TYPE=MyISAM;
+);
 
 -- --------------------------------------------------------
 
@@ -60,7 +60,7 @@
   `signature` text NOT NULL,
   PRIMARY KEY  (`identity_id`),
   KEY `user_id` (`user_id`)
-) TYPE=MyISAM;
+);
 
 -- --------------------------------------------------------
 
@@ -75,7 +75,7 @@
   `ip` VARCHAR(15) NOT NULL default '',
   `vars` text NOT NULL,
   PRIMARY KEY  (`sess_id`)
-) TYPE=MyISAM;
+);
 
 -- --------------------------------------------------------
 
@@ -93,7 +93,7 @@
   `language` varchar(5) NOT NULL default 'en',
   `preferences` text NOT NULL default '',
   PRIMARY KEY  (`user_id`)
-) TYPE=MyISAM;
+);
 
 -- --------------------------------------------------------
 
@@ -116,12 +116,12 @@
   `date` datetime NOT NULL default '0000-00-00 00:00:00',
   `size` int(11) unsigned NOT NULL default '0',
   `headers` text NOT NULL,
-  `body` longtext,
+  `structure` text,
   PRIMARY KEY  (`message_id`),
   KEY `user_id` (`user_id`),
-  KEY `cache_key` (`cache_key`),
   KEY `idx` (`idx`),
-  KEY `uid` (`uid`)
-) TYPE=MyISAM;
+  KEY `uid` (`uid`),
+  UNIQUE `uniqueness` (`cache_key`, `uid`)
+);
 
 

--
Gitblit v1.9.1