From ce92ba767a9557daf7f18be94882dd7e6f4591fb Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 30 Sep 2010 09:24:33 -0400 Subject: [PATCH] - Plugin API: improved 'abort' flag handling, added 'result' item in some hooks: group_*, contact_*, identity_* (#1486914) --- 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