summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-15 09:46:51 +0000
committeralecpl <alec@alec.pl>2010-06-15 09:46:51 +0000
commit161bb97f45aef45124077a6e010fa73de7f8fe5f (patch)
tree65007b6181f981134a9f19729871b47fe3462f6b
parentf19d86b96da4a73efa88042dd0bcf0da1a214762 (diff)
- Added ALTER TABLE .. ENGINE=InnoDB, per discussion in #1486794
-rw-r--r--SQL/mysql.update.sql15
1 files changed, 12 insertions, 3 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index fa9a016a8..23fcad838 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 `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`;