From cf35bf82a8861dc0a80ca71a094ef4e0e88d97d3 Mon Sep 17 00:00:00 2001 From: jgen Date: Sat, 22 Feb 2014 23:30:58 -0500 Subject: [PATCH] Postgres doesn't support the DATETIME field. --- ext/comment/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index 00b5a796..6f824104 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -78,7 +78,7 @@ class CommentList extends Extension { image_id INTEGER NOT NULL, owner_id INTEGER NOT NULL, owner_ip SCORE_INET NOT NULL, - posted DATETIME DEFAULT NULL, + posted SCORE_DATETIME DEFAULT NULL, comment TEXT NOT NULL, FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE, FOREIGN KEY (owner_id) REFERENCES users(id) ON DELETE RESTRICT @@ -96,7 +96,7 @@ class CommentList extends Extension { image_id INTEGER NOT NULL, owner_id INTEGER NOT NULL, owner_ip CHAR(16) NOT NULL, - posted DATETIME DEFAULT NULL, + posted SCORE_DATETIME DEFAULT NULL, comment TEXT NOT NULL "); $database->execute("CREATE INDEX comments_image_id_idx ON comments(image_id)", array());