From 609d3923d7dc674263ddea990387dbf5488fabc6 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Sun, 18 Sep 2011 05:02:35 -0400
Subject: [PATCH] - Cache synchronization using QRESYNC/CONDSTORE - Fixed message ID updates in cache - Changed message flags handling + some fixes (e.g. fixed messages listing after delete)

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

diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql
index 7ec8201..80c82a1 100644
--- a/SQL/sqlite.initial.sql
+++ b/SQL/sqlite.initial.sql
@@ -159,6 +159,7 @@
     user_id integer NOT NULL,
     mailbox varchar(255) NOT NULL,
     changed datetime NOT NULL default '0000-00-00 00:00:00',
+    valid smallint NOT NULL DEFAULT '0',
     data text NOT NULL,
     PRIMARY KEY (user_id, mailbox)
 );
@@ -193,12 +194,7 @@
     uid integer NOT NULL,
     changed datetime NOT NULL default '0000-00-00 00:00:00',
     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