From a35062a1eba5c6c15f703686cd4fecc5536d74df Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 15 Apr 2010 02:33:30 -0400 Subject: [PATCH] Always set changed date when marking a DB record as deleted + provide a cleanup script --- SQL/postgres.update.sql | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index ec7ce9b..dc22b90 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -49,6 +49,8 @@ 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 -- Gitblit v1.9.1