From 6220e55559d3871922e46292a6cc71d2ae5d36f7 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 13 Nov 2018 08:52:42 -0500 Subject: [PATCH] Provide default `updated` value This addresses #18 --- schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema.sql b/schema.sql index 8cacf05..7067a91 100644 --- a/schema.sql +++ b/schema.sql @@ -108,7 +108,7 @@ CREATE TABLE IF NOT EXISTS `posts` ( `collection_id` int(6) DEFAULT NULL, `pinned_position` tinyint(1) UNSIGNED DEFAULT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `updated` timestamp NOT NULL, + `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `view_count` int(6) NOT NULL, `title` varchar(160) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL, `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,