diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-10-29 19:58:12 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-09 14:13:33 +0300 |
commit | ab43d6a11e7210a39ea49bb30b79c1d06b095efc (patch) | |
tree | 3e8aed1203f0148161daca87662e36f42cd7f75d /core/Migrations | |
parent | 0d42d996d117b295f881ece6d55e59910e5d8f1b (diff) |
Adjust execution duration to 0
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 9a1815c09a5..481de74b21e 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')) { |