summaryrefslogtreecommitdiff
path: root/roundcubemail/SQL/mysql.update.sql
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-11 07:18:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-11 07:18:19 +0000
commitdfba922026ab5fdce33d84ae1be28b684ca63d38 (patch)
tree1a027311305a6ee250de15591a9dd7b0fdd6caa9 /roundcubemail/SQL/mysql.update.sql
parent3399f71deeb517ae744b558f3d6a2d7697ab93f3 (diff)
- move TRUNCATE before CREATE INDEX (#1486362)
git-svn-id: https://svn.roundcube.net/trunk@3174 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL/mysql.update.sql')
-rw-r--r--roundcubemail/SQL/mysql.update.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql
index 77bf317e9..17301ab05 100644
--- a/roundcubemail/SQL/mysql.update.sql
+++ b/roundcubemail/SQL/mysql.update.sql
@@ -47,11 +47,11 @@ ALTER TABLE `users`
-- Updates from version 0.3-stable
+TRUNCATE `messages`;
+
ALTER TABLE `messages`
ADD INDEX `index_index` (`user_id`, `cache_key`, `idx`);
-TRUNCATE `messages`;
-
ALTER TABLE `session`
CHANGE `vars` `vars` MEDIUMTEXT NOT NULL;