Fix "Field 'run_number' doesn't have a default value"

[MAILPOET-5599]
This commit is contained in:
Jan Jakes
2023-09-22 14:49:20 +02:00
committed by Aschepikov
parent 6388a7307f
commit c5f50b2a47

View File

@@ -98,8 +98,8 @@ class Migration_20230831_143755_Db extends DbMigration {
$startedAt = strval($item['started_at']);
$date = "DATE_SUB('$startedAt', INTERVAL 1 SECOND)";
$queries[] = "
INSERT INTO {$logsTable} (automation_run_id, step_id, step_type, step_key, status, started_at, updated_at)
VALUES ($runId, '$triggerId', 'trigger', '$triggerKey', 'complete', $date, $date)
INSERT INTO {$logsTable} (automation_run_id, step_id, step_type, step_key, status, started_at, updated_at, run_number)
VALUES ($runId, '$triggerId', 'trigger', '$triggerKey', 'complete', $date, $date, 1)
";
$triggerAddedMap[$runId] = true;
}