From 51e3569501a6537060b938f244515dfe41989c72 Mon Sep 17 00:00:00 2001 From: gamonoid Date: Mon, 21 May 2018 10:36:35 +0200 Subject: [PATCH] Fix conversation table creation --- .../migrations/v20180514_230002_add_conversation_tables.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/migrations/v20180514_230002_add_conversation_tables.php b/core/migrations/v20180514_230002_add_conversation_tables.php index e763d5ff..c1b150c2 100644 --- a/core/migrations/v20180514_230002_add_conversation_tables.php +++ b/core/migrations/v20180514_230002_add_conversation_tables.php @@ -13,8 +13,8 @@ create table `Conversations` ( `attachment` varchar(100) NULL, `employee` bigint(20) NOT NULL, `target` bigint(20) NULL, - `created` DATETIME default '0000-00-00 00:00:00', - `updated` DATETIME default '0000-00-00 00:00:00', + `created` DATETIME default NULL, + `updated` DATETIME default NULL, `timeint` BIGINT(20) NOT NULL, primary key (`id`), unique key `KEY_Conversations_attachment` (`attachment`), @@ -33,7 +33,7 @@ create table `ConversationUserStatus` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `employee` bigint(20) NOT NULL, `status` varchar(15) NULL, - `seen_at` DATETIME default '0000-00-00 00:00:00', + `seen_at` DATETIME default NULL, primary key (`id`), unique key `KEY_ConversationLastSeen_employee` (`employee`), index `KEY_ConversationLastSeen_seen_at` (`seen_at`),