From 09fc3f3087cad8296e60c24e0b8e159374c20ec4 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 27 Oct 2008 06:53:56 -0400
Subject: [PATCH] -fix: mark as read (for read_when_deleted) only when moving messages to trash

---
 SQL/postgres.update.sql |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index e0afa61..dfc282b 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -17,3 +17,7 @@
 ALTER TABLE contacts ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
 ALTER TABLE cache DROP CONSTRAINT cache_user_id_fkey;
 ALTER TABLE cache ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- Updates from version 0.2-alpha
+
+CREATE INDEX messages_created_idx ON messages (created);

--
Gitblit v1.9.1