1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

fix default datetime values

This commit is contained in:
Lynne Megido 2019-09-11 20:43:33 +10:00
parent b688186c28
commit 6d6b975fc0

View file

@ -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;