Adjust execution duration to 0

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
Vincent Petry 2020-10-29 17:58:12 +01:00 committed by Julius Härtl
parent 0d42d996d1
commit ab43d6a11e
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 6 additions and 0 deletions

View File

@ -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')) {