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

@@ -48,6 +48,8 @@ CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
DROP INDEX ix_identities_user_id;
CREATE INDEX ix_identities_user_id ON identities (user_id, del);
ALTER TABLE identities ADD COLUMN changed datetime NOT NULL default '0000-00-00 00:00:00';
CREATE TABLE contactgroups (
contactgroup_id integer NOT NULL PRIMARY KEY,
user_id integer NOT NULL default '0',