From 6d6b975fc01de152ad896c12cfe20381f269a337 Mon Sep 17 00:00:00 2001 From: Lynne Date: Wed, 11 Sep 2019 20:43:33 +1000 Subject: [PATCH] fix default datetime values --- setup.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sql b/setup.sql index c047934..d38c345 100644 --- a/setup.sql +++ b/setup.sql @@ -31,9 +31,9 @@ CREATE TABLE IF NOT EXISTS `bots` ( `fake_mentions_full` BOOLEAN DEFAULT 0, `post_privacy` ENUM('public', 'unlisted', 'private') DEFAULT 'unlisted', `learn_from_cw` BOOLEAN DEFAULT 0, - `last_post` DATETIME DEFAULT 0, + `last_post` DATETIME DEFAULT CURRENT_TIMESTAMP(), `icon` VARCHAR(512), - `icon_update_time` DATETIME DEFAULT 0, + `icon_update_time` DATETIME DEFAULT '1000-01-01 00:00:00', FOREIGN KEY (`user_id`) REFERENCES users(id) ON DELETE CASCADE, FOREIGN KEY (`credentials_id`) REFERENCES credentials(id) ON DELETE CASCADE ) ENGINE=INNODB;