From bbe3c2010df9041645a60c76cc3d3694a3aa05eb Mon Sep 17 00:00:00 2001 From: thomasb Date: Thu, 15 Apr 2010 06:33:30 +0000 Subject: Always set changed date when marking a DB record as deleted + provide a cleanup script git-svn-id: https://svn.roundcube.net/trunk@3489 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/SQL/postgres.update.sql | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roundcubemail/SQL/postgres.update.sql') diff --git a/roundcubemail/SQL/postgres.update.sql b/roundcubemail/SQL/postgres.update.sql index ec7ce9b62..dc22b9030 100644 --- a/roundcubemail/SQL/postgres.update.sql +++ b/roundcubemail/SQL/postgres.update.sql @@ -49,6 +49,8 @@ CREATE INDEX contacts_user_id_idx ON contacts (user_id, email); DROP INDEX identities_user_id_idx; CREATE INDEX identities_user_id_idx ON identities (user_id, del); +ALTER TABLE identities ADD changed timestamp with time zone DEFAULT now() NOT NULL AFTER user_id; + CREATE SEQUENCE contactgroups_ids INCREMENT BY 1 NO MAXVALUE -- cgit v1.2.3