From ce76ff1d3761839df4c540baac8a2f1196f6f362 Mon Sep 17 00:00:00 2001
From: alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>
Date: Tue, 15 Jun 2010 09:46:51 +0000
Subject: - Added ALTER TABLE .. ENGINE=InnoDB, per discussion in #1486794

git-svn-id: https://svn.roundcube.net/trunk@3753 208e9e7b-5314-0410-a742-e7e81cd9613c
---
 roundcubemail/SQL/mysql.update.sql | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

(limited to 'roundcubemail/SQL/mysql.update.sql')

diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql
index fa9a016a8..23fcad838 100644
--- a/roundcubemail/SQL/mysql.update.sql
+++ b/roundcubemail/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 `identities`
 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`);
 
@@ -45,6 +46,14 @@ ALTER TABLE `cache`
 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
 
 TRUNCATE `messages`;
-- 
cgit v1.2.3

