summaryrefslogtreecommitdiff
path: root/SQL
diff options
context:
space:
mode:
Diffstat (limited to 'SQL')
-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`;