From 275dccfca1d7541b6e543e846691160f81e5ce58 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 06 Oct 2010 04:00:36 -0400 Subject: [PATCH] Tagging files of release 0.4.1 --- SQL/mysql.update.sql | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index fa9a016..28ebf6f 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -1,5 +1,6 @@ --- RoundCube Webmail update script for MySQL databases --- Updates from version 0.1-stable to 0.3.1 +-- Roundcube Webmail update script for MySQL databases + +-- Updates from version 0.1-stable TRUNCATE TABLE `messages`; @@ -31,11 +32,11 @@ ALTER TABLE `messages` ADD INDEX `created_index` (`created`); --- Updates from version 0.2-beta (InnoDB only) +-- Updates from version 0.2-beta (InnoDB required) ALTER TABLE `cache` DROP `session_id`; - + ALTER TABLE `session` ADD INDEX `changed_index` (`changed`); @@ -44,6 +45,13 @@ ALTER TABLE `users` CHANGE `language` `language` varchar(5); + +ALTER TABLE `cache` ENGINE=InnoDB; +ALTER TABLE `session` ENGINE=InnoDB; +ALTER TABLE `messages` ENGINE=InnoDB; +ALTER TABLE `users` ENGINE=InnoDB; +ALTER TABLE `contacts` ENGINE=InnoDB; +ALTER TABLE `identities` ENGINE=InnoDB; -- Updates from version 0.3-stable @@ -59,6 +67,8 @@ ADD INDEX `user_contacts_index` (`user_id`,`email`); -- Updates from version 0.3.1 +-- WARNING: Make sure that all tables are using InnoDB engine!!! +-- If not, use: ALTER TABLE xxx ENGINE=InnoDB; /* MySQL bug workaround: http://bugs.mysql.com/bug.php?id=46293 */ /*!40014 SET FOREIGN_KEY_CHECKS=0 */; -- Gitblit v1.9.1