From d28b4fda583c051faebaee086e2f4ce157ddbdaa Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Wed, 21 Mar 2018 08:26:32 +0000 Subject: [PATCH] Add index to task_id [MAILPOET-1334] --- lib/Config/Migrator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Config/Migrator.php b/lib/Config/Migrator.php index a0359ab27b..4c58cd4335 100644 --- a/lib/Config/Migrator.php +++ b/lib/Config/Migrator.php @@ -148,7 +148,8 @@ class Migrator { 'created_at TIMESTAMP NULL,', 'updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,', 'deleted_at TIMESTAMP NULL,', - 'PRIMARY KEY (id)', + 'PRIMARY KEY (id),', + 'KEY task_id (task_id)', ); return $this->sqlify(__FUNCTION__, $attributes); }