summaryrefslogtreecommitdiff
path: root/roundcubemail/SQL/postgres.update.sql
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-05 08:45:22 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-01-05 08:45:22 +0000
commit748f497cb09fccb1eeff25b0bc41f69b44bc0f5c (patch)
tree780134527c5e9060a8db996f2e15690d55ebf634 /roundcubemail/SQL/postgres.update.sql
parent63a99a2d3e1c0da960b295cb52f2d016ef7c6b97 (diff)
- Fix SQL Error when saving a contact with many email addresses (#1488286)
git-svn-id: https://svn.roundcube.net/trunk@5711 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL/postgres.update.sql')
-rw-r--r--roundcubemail/SQL/postgres.update.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/roundcubemail/SQL/postgres.update.sql b/roundcubemail/SQL/postgres.update.sql
index 0db2e9ee0..7e9d34fa9 100644
--- a/roundcubemail/SQL/postgres.update.sql
+++ b/roundcubemail/SQL/postgres.update.sql
@@ -169,3 +169,9 @@ CREATE INDEX cache_messages_changed_idx ON cache_messages (changed);
-- Updates from version 0.7-beta
ALTER TABLE "session" ALTER sess_id TYPE varchar(128);
+
+-- Updates from version 0.7
+
+DROP INDEX contacts_user_id_idx;
+CREATE INDEX contacts_user_id_idx ON contacts USING btree (user_id, del);
+ALTER TABLE contacts ALTER email TYPE text;