From 14d494fd993a8530e41f65d548dd91e4a86c91b9 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Wed, 28 Sep 2011 05:00:25 -0400
Subject: [PATCH] - Fix misleading display when chaning editor type (#1488104), fix handling of custom commands result

---
 SQL/postgres.update.sql |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql
index 4bd0400..7e650af 100644
--- a/SQL/postgres.update.sql
+++ b/SQL/postgres.update.sql
@@ -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)
 );
@@ -159,12 +160,7 @@
     uid integer NOT NULL,
     changed timestamp with time zone DEFAULT now() NOT NULL,
     data text NOT NULL,
-    seen smallint NOT NULL DEFAULT 0,
-    deleted smallint NOT NULL DEFAULT 0,
-    answered smallint NOT NULL DEFAULT 0,
-    forwarded smallint NOT NULL DEFAULT 0,
-    flagged smallint NOT NULL DEFAULT 0,
-    mdnsent smallint NOT NULL DEFAULT 0,
+    flags integer NOT NULL DEFAULT 0,
     PRIMARY KEY (user_id, mailbox, uid)
 );
 

--
Gitblit v1.9.1