From: Vincent Petry Date: Thu, 29 Oct 2020 16:58:12 +0000 (+0100) Subject: Adjust execution duration to 0 X-Git-Tag: v20.0.4~1^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9bdb5b94b70c9ee205d1736d13d553bd5215260;p=nextcloud-server.git Adjust execution duration to 0 Signed-off-by: Vincent Petry --- diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 657ed63e250..218497668f9 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -453,6 +453,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')) {