From 9e1605f9e4d88e887029bb7927b7891a34f8eb46 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Sat, 08 Dec 2012 08:13:23 -0500 Subject: [PATCH] Better explanation of the new mime_types config option --- SQL/postgres.update.sql | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index 741495f..11ab93b 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -101,7 +101,7 @@ TRUNCATE messages; TRUNCATE cache; --- Updates from version 0.6-stable +-- Updates from version 0.6 CREATE TABLE dictionary ( user_id integer DEFAULT NULL @@ -127,7 +127,7 @@ CONSTRAINT searches_user_id_key UNIQUE (user_id, "type", name) ); -DROP SEQUENCE messages_ids; +DROP SEQUENCE message_ids; DROP TABLE messages; CREATE TABLE cache_index ( @@ -135,6 +135,7 @@ REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE, mailbox varchar(255) NOT NULL, changed timestamp with time zone DEFAULT now() NOT NULL, + valid smallint NOT NULL DEFAULT 0, data text NOT NULL, PRIMARY KEY (user_id, mailbox) ); @@ -164,3 +165,21 @@ ); 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; + +-- 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