summaryrefslogtreecommitdiff
path: root/roundcubemail/SQL/postgres.initial.sql
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-15 06:33:30 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-15 06:33:30 +0000
commitbbe3c2010df9041645a60c76cc3d3694a3aa05eb (patch)
tree50b19693ce589b993b6281d391483c28c3731361 /roundcubemail/SQL/postgres.initial.sql
parent39daa0f89694f758f0544fce7ec48ed3230eea2c (diff)
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
Diffstat (limited to 'roundcubemail/SQL/postgres.initial.sql')
-rw-r--r--roundcubemail/SQL/postgres.initial.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/roundcubemail/SQL/postgres.initial.sql b/roundcubemail/SQL/postgres.initial.sql
index eeeca32ce..5770dcc4c 100644
--- a/roundcubemail/SQL/postgres.initial.sql
+++ b/roundcubemail/SQL/postgres.initial.sql
@@ -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,