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 958f7968e3
commit d9bdb5b94b
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 6 additions and 0 deletions

View File

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