diff options
author | Yorhel <git@yorhel.nl> | 2009-08-09 09:57:22 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-09 10:12:06 +0200 |
commit | f0417c6752873c4d6191c7b5f90ac4e44853fd55 (patch) | |
tree | cfd3d7033c3564e04ac2f8c5458683b64f68f485 /util/dump.sql | |
parent | bf4ee54dbc1a3d6a358883baedde7602a8232da4 (diff) |
Converted changes.added to timestamptz
That was the last one. I hope I haven't forgotten to update anything.
Diffstat (limited to 'util/dump.sql')
-rw-r--r-- | util/dump.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/dump.sql b/util/dump.sql index f8c7564c..b3baae99 100644 --- a/util/dump.sql +++ b/util/dump.sql @@ -34,7 +34,7 @@ CREATE TABLE changes ( id SERIAL NOT NULL PRIMARY KEY, type smallint NOT NULL DEFAULT 0, rev integer NOT NULL DEFAULT 1, - added bigint NOT NULL DEFAULT DATE_PART('epoch', NOW()), + added timestamptz NOT NULL DEFAULT NOW(), requester integer NOT NULL DEFAULT 0, ip inet NOT NULL DEFAULT '0.0.0.0', comments text NOT NULL DEFAULT '', @@ -809,8 +809,8 @@ CREATE SEQUENCE covers_seq; -- Rows that are assumed to be available INSERT INTO users (id, username, mail, rank) VALUES (0, 'deleted', 'del@vndb.org', 0); -INSERT INTO users (username, mail, rank, registered) - VALUES ('multi', 'multi@vndb.org', 0, EXTRACT(EPOCH FROM NOW())); +INSERT INTO users (username, mail, rank) + VALUES ('multi', 'multi@vndb.org', 0); INSERT INTO stats_cache (section, count) VALUES ('users', 1), |