From f8e8af7e7c9f43f63a75db5dfb33479866bd7c48 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 15 Sep 2010 05:27:45 -0400 Subject: [PATCH] - Settings block (fieldset) can have any content (not only a table with hardcoded structure) --- SQL/mysql.update.sql | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index fa9a016..739a3d8 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 + +-- 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