summaryrefslogtreecommitdiff
path: root/util/dump.sql
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-08 16:24:36 +0200
committerYorhel <git@yorhel.nl>2009-08-08 16:24:36 +0200
commitc90e590bdbe7933df8e8a0d83c82dddfa22afc37 (patch)
treed12222fe49826cf640f0321c04bcc8130c0e25ee /util/dump.sql
parent5865bdbb0c0b9492d57af220bb00ee9d1f7eeed7 (diff)
Converted wlists.added and rlists.added to timestamptz
I like how the rlists.added column isn't used anywhere in the code, makes the conversion a lot easier. :-)
Diffstat (limited to 'util/dump.sql')
-rw-r--r--util/dump.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dump.sql b/util/dump.sql
index acd639d5..f103d14d 100644
--- a/util/dump.sql
+++ b/util/dump.sql
@@ -149,7 +149,7 @@ CREATE TABLE rlists (
rid integer NOT NULL DEFAULT 0,
vstat smallint NOT NULL DEFAULT 0,
rstat smallint NOT NULL DEFAULT 0,
- added bigint NOT NULL DEFAULT DATE_PART('epoch', NOW()),
+ added timestamptz NOT NULL DEFAULT NOW(),
PRIMARY KEY(uid, rid)
);
@@ -335,7 +335,7 @@ CREATE TABLE wlists (
uid integer NOT NULL DEFAULT 0,
vid integer NOT NULL DEFAULT 0,
wstat smallint NOT NULL DEFAULT 0,
- added bigint NOT NULL DEFAULT DATE_PART('epoch', NOW()),
+ added timestamptz NOT NULL DEFAULT NOW(),
PRIMARY KEY(uid, vid)
);