[fix] fixing lastlogin default value for mariadb (which is more strict...)

This commit is contained in:
Benjamin Sonntag 2018-02-23 16:12:59 +01:00
parent 7d35b9cb59
commit 6d804d1a95
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ CREATE TABLE IF NOT EXISTS `mailbox` (
`update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- Update date, for technical usage only. `update_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- Update date, for technical usage only.
`bytes` bigint(20) NOT NULL DEFAULT '0', -- number of bytes in the mailbox, filled by dovecot `bytes` bigint(20) NOT NULL DEFAULT '0', -- number of bytes in the mailbox, filled by dovecot
`messages` int(11) NOT NULL DEFAULT '0', -- number of messages in the mailbox, filled by dovecot `messages` int(11) NOT NULL DEFAULT '0', -- number of messages in the mailbox, filled by dovecot
`lastlogin` datetime NOT NULL DEFAULT '0', -- Last login, filled by dovecot `lastlogin` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', -- Last login, filled by dovecot
`mail_action` enum('OK','DELETE','DELETING') NOT NULL default 'OK', -- mail_action is DELETE or DELETING when deleting a mailbox by cron `mail_action` enum('OK','DELETE','DELETING') NOT NULL default 'OK', -- mail_action is DELETE or DELETING when deleting a mailbox by cron
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `address_id` (`address_id`) UNIQUE KEY `address_id` (`address_id`)