summaryrefslogtreecommitdiff
path: root/SQL/postgres.update.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-05 08:45:22 +0000
committeralecpl <alec@alec.pl>2012-01-05 08:45:22 +0000
commit48be8f6428ba3be7375b84aea2b73d1c67de6da1 (patch)
treec1b27daef6533502054f395ef5d85f5a3499c1af /SQL/postgres.update.sql
parenta01df71de495de79624d79b78d2959a443334cce (diff)
- Fix SQL Error when saving a contact with many email addresses (#1488286)
Diffstat (limited to 'SQL/postgres.update.sql')
-rw-r--r--SQL/postgres.update.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index 0db2e9ee0..7e9d34fa9 100644
--- a/SQL/postgres.update.sql
+++ b/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;