From 65b61cdd1ce5b011ca9f846847e81f16f10ef0d0 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 07 Jul 2011 07:55:59 -0400
Subject: [PATCH] - Insert APC_UPLOAD_PROGRESS hidden field before file field (#1486039)

---
 SQL/sqlite.initial.sql |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql
index 8565eae..d2885e9 100644
--- a/SQL/sqlite.initial.sql
+++ b/SQL/sqlite.initial.sql
@@ -1,4 +1,4 @@
--- RoundCube Webmail initial database structure
+-- Roundcube Webmail initial database structure
 
 -- 
 -- Table structure for table `cache`
@@ -28,10 +28,11 @@
   changed datetime NOT NULL default '0000-00-00 00:00:00',
   del tinyint NOT NULL default '0',
   name varchar(128) NOT NULL default '',
-  email varchar(128) NOT NULL default '',
+  email varchar(255) NOT NULL default '',
   firstname varchar(128) NOT NULL default '',
   surname varchar(128) NOT NULL default '',
-  vcard text NOT NULL default ''
+  vcard text NOT NULL default '',
+  words text NOT NULL default ''
 );
 
 CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
@@ -54,6 +55,8 @@
   created datetime NOT NULL default '0000-00-00 00:00:00',
   PRIMARY KEY (contactgroup_id, contact_id)
 );
+
+CREATE INDEX ix_contactgroupmembers_contact_id ON contactgroupmembers (contact_id);
 
 
 -- --------------------------------------------------------
@@ -97,7 +100,7 @@
   preferences text NOT NULL default ''
 );
 
-CREATE INDEX ix_users_username ON users(username);
+CREATE UNIQUE INDEX ix_users_username ON users(username, mail_host);
 CREATE INDEX ix_users_alias ON users(alias);
 
 -- --------------------------------------------------------

--
Gitblit v1.9.1