summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-27 20:50:31 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-27 20:50:31 +0100
commitb29b962eecbbadecda4ad63e1c9a6d33710bcc05 (patch)
tree6d62d7740124c80f7bff5430a48420ce8e81487f /schema.sql
parentcaaef2492e17b397bb2ee3d60edfaf830ead51e5 (diff)
Database schema: Use the TIMESTAMP WITH TIME ZONE type for timestamps.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/schema.sql b/schema.sql
index 51d487e..c94ffcf 100644
--- a/schema.sql
+++ b/schema.sql
@@ -29,7 +29,7 @@ CREATE TABLE wiki_pages(
CREATE TABLE wiki_page_revisions(
id SERIAL NOT NULL,
page INTEGER NOT NULL,
- date TIMESTAMP DEFAULT now(),
+ date TIMESTAMP WITH TIME ZONE DEFAULT now(),
title VARCHAR,
content VARCHAR,
author INTEGER,
@@ -44,7 +44,7 @@ CREATE TABLE wiki_page_revisions(
CREATE TABLE bookmarks(
id SERIAL NOT NULL,
owner INTEGER,
- date TIMESTAMP DEFAULT now(),
+ date TIMESTAMP WITH TIME ZONE DEFAULT now(),
uri VARCHAR NOT NULL,
title VARCHAR,
description VARCHAR,