Add index to task_id

[MAILPOET-1334]
This commit is contained in:
Pavel Dohnal
2018-03-21 08:26:32 +00:00
parent 09081631a4
commit d28b4fda58

View File

@@ -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);
}