summaryrefslogtreecommitdiff
path: root/roundcubemail/SQL/mysql.update.sql
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-03-25 19:08:19 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-03-25 19:08:19 +0000
commitfa7e3c3f39edf431a8d92b7b652b9c88c9c853ce (patch)
treeef2128fc8bf8091095bffa56b6a32fa77276d10e /roundcubemail/SQL/mysql.update.sql
parent70c723bc60624dee43b24ed1a482dca83c5142b4 (diff)
Optimize database schema; get rid of unnecessary indexes
git-svn-id: https://svn.roundcube.net/trunk@1218 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL/mysql.update.sql')
-rw-r--r--roundcubemail/SQL/mysql.update.sql22
1 files changed, 7 insertions, 15 deletions
diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql
index e904be278..70230784b 100644
--- a/roundcubemail/SQL/mysql.update.sql
+++ b/roundcubemail/SQL/mysql.update.sql
@@ -1,21 +1,13 @@
-- RoundCube Webmail update script for MySQL databases
--- Updates from version 0.1-beta and 0.1-beta2
+-- Updates from version 0.1-stable to 0.1.1
TRUNCATE TABLE `messages`;
ALTER TABLE `messages`
- DROP `body`,
- DROP INDEX `cache_key`,
- ADD `structure` TEXT,
- ADD UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`);
-
-ALTER TABLE `identities`
- ADD `html_signature` tinyint(1) default 0 NOT NULL;
+ DROP INDEX `idx`,
+ DROP INDEX `uid`;
-ALTER TABLE `session` CHANGE `ip` `ip` VARCHAR(40)
-
--- Uncomment these lines if you're using MySQL 4.1 or higher
--- ALTER TABLE `users`
--- DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci,
--- CHANGE `username` `username` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
--- CHANGE `alias` `alias` VARCHAR( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
+ALTER TABLE `cache`
+ DROP INDEX `cache_key`,
+ DROP INDEX `session_id`,
+ ADD INDEX `user_cache_index` (`user_id`,`cache_key`);