From aa546e17887931ccaf6390c2d6a31e028db70aaf Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 07 Nov 2011 06:03:45 -0500 Subject: [PATCH] - Fix handling of DB connection failures. Detect failure on connection level instead of on query level. Fixes issue when one write query failed, next queries were not executed. - Changed 'var' to 'public'. --- SQL/sqlite.update.sql | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/SQL/sqlite.update.sql b/SQL/sqlite.update.sql index 378072c..0193c7c 100644 --- a/SQL/sqlite.update.sql +++ b/SQL/sqlite.update.sql @@ -228,7 +228,7 @@ DELETE FROM cache; CREATE INDEX ix_contactgroupmembers_contact_id ON contactgroupmembers (contact_id); --- Updates from version 0.6-stable +-- Updates from version 0.6 CREATE TABLE dictionary ( user_id integer DEFAULT NULL, @@ -254,6 +254,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) ); @@ -276,12 +277,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