diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 9a1815c09a..481de74b21 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -468,6 +468,12 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { ]); $table->setPrimaryKey(['id']); $table->addIndex(['class'], 'job_class_index'); + } else { + $table = $schema->getTable('jobs'); + $table->changeColumn('execution_duration', [ + 'notnull' => true, + 'default' => 0, + ]); } if (!$schema->hasTable('users')) {