summaryrefslogtreecommitdiff
path: root/roundcubemail/SQL/postgres.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/postgres.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/postgres.update.sql')
-rw-r--r--roundcubemail/SQL/postgres.update.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/SQL/postgres.update.sql b/roundcubemail/SQL/postgres.update.sql
index e343dd440..cb83f511b 100644
--- a/roundcubemail/SQL/postgres.update.sql
+++ b/roundcubemail/SQL/postgres.update.sql
@@ -39,7 +39,7 @@ ALTER TABLE messages ALTER del TYPE smallint;
-- Updates from version 0.3-stable
-CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx);
TRUNCATE messages;
+CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx);
DROP INDEX contacts_user_id_idx;
CREATE INDEX contacts_user_id_idx ON contacts (user_id, email);