From 0e660f5aba1999397c26fc9ea2c54e2fe5ca9f10 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 3 Nov 2019 19:15:09 +0000 Subject: [PATCH] mysql... --- 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 10c6a531..0a65afd6 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -111,7 +111,7 @@ class CommentList extends Extension image_id INTEGER NOT NULL, owner_id INTEGER NOT NULL, owner_ip SCORE_INET NOT NULL, - posted TIMESTAMP DEFAULT NULL, + posted TIMESTAMP DEFAULT CURRENT_TIMESTAMP, comment TEXT NOT NULL, FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE, FOREIGN KEY (owner_id) REFERENCES users(id) ON DELETE RESTRICT @@ -129,7 +129,7 @@ class CommentList extends Extension image_id INTEGER NOT NULL, owner_id INTEGER NOT NULL, owner_ip CHAR(16) NOT NULL, - posted TIMESTAMP DEFAULT NULL, + posted TIMESTAMP DEFAULT CURRENT_TIMESTAMP, comment TEXT NOT NULL "); $database->execute("CREATE INDEX comments_image_id_idx ON comments(image_id)", []);