roundcubemail-plugins-kolab/plugins/calendar/drivers/kolab/SQL/mysql/2012080600.sql
Aleksander Machniak de8e018c4a Fix kolab_alarms table schema for MariaDB (Bifrost#T163148)
Error: Specified key was too long; max key length is 767 bytes, is caused
by missing charset specification for the table. Maria's default
charset is utf8mb4 making the varchar(255) field too big for a key.
2019-05-28 13:54:00 +02:00

11 lines
479 B
SQL

DROP TABLE IF EXISTS `kolab_alarms`;
CREATE TABLE `kolab_alarms` (
`event_id` VARCHAR(255) NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`notifyat` DATETIME DEFAULT NULL,
`dismissed` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY(`event_id`),
CONSTRAINT `fk_kolab_alarms_user_id` FOREIGN KEY (`user_id`)
REFERENCES `users`(`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;