From 8beceebb55294cbb65d597d5e3924b2bc5d2689f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 27 Nov 2012 12:07:42 -0500 Subject: [PATCH] Fix deleting of collapsed threads, broken in 2b55d4f4204bdb8c97865e01b960c1d1f23ac0b7 (#1488772) --- SQL/postgres.update.sql | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index 0db2e9e..11ab93b 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -169,3 +169,17 @@ -- 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; + +-- Updates from version 0.8 + +ALTER TABLE cache DROP COLUMN cache_id; +DROP SEQUENCE cache_ids; + +ALTER TABLE users DROP COLUMN alias; +CREATE INDEX identities_email_idx ON identities (email, del); -- Gitblit v1.9.1