From b72eb54c89eff09b5f4d20640686b0d6669c7d59 Mon Sep 17 00:00:00 2001 From: Marcin Misiak <2mmarcinmisiak@gmail.com> Date: Mon, 1 Apr 2019 14:28:54 +0200 Subject: [PATCH] Update m181018_070730_create_table_survey.php MySQL 5.7 --- migrations/m181018_070730_create_table_survey.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/m181018_070730_create_table_survey.php b/migrations/m181018_070730_create_table_survey.php index ef66006..6901337 100644 --- a/migrations/m181018_070730_create_table_survey.php +++ b/migrations/m181018_070730_create_table_survey.php @@ -15,8 +15,8 @@ public function up() 'survey_id' => $this->primaryKey()->unsigned(), 'survey_name' => $this->string(), 'survey_created_at' => $this->timestamp()->defaultExpression('CURRENT_TIMESTAMP'), - 'survey_updated_at' => $this->timestamp(), - 'survey_expired_at' => $this->timestamp(), + 'survey_updated_at' => $this->timestamp()->defaultExpression('CURRENT_TIMESTAMP'),, + 'survey_expired_at' => $this->timestamp()->defaultExpression('CURRENT_TIMESTAMP'),, 'survey_is_pinned' => $this->boolean()->defaultValue('0'), 'survey_is_closed' => $this->boolean()->defaultValue('0'), 'survey_tags' => $this->string(),