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

@@ -68,6 +68,7 @@ CREATE TABLE identities (
identity_id integer DEFAULT nextval('identity_ids'::text) PRIMARY KEY,
user_id integer NOT NULL
REFERENCES users (user_id) ON DELETE CASCADE ON UPDATE CASCADE,
changed timestamp with time zone DEFAULT now() NOT NULL,
del smallint DEFAULT 0 NOT NULL,
standard smallint DEFAULT 0 NOT NULL,
name varchar(128) NOT NULL,