Always set changed date when marking a DB record as deleted + provide a cleanup script

This commit is contained in:
thomascube
2010-04-15 06:33:30 +00:00
parent 58892824a6
commit a35062a1eb
11 changed files with 99 additions and 22 deletions

View File

@@ -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