thomascube
2010-10-06 2fe8d6bdebbaa160ee062b18e78fe7e77b430e00
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 */;