]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust execution duration to 0
authorVincent Petry <vincent@nextcloud.com>
Thu, 29 Oct 2020 16:58:12 +0000 (17:58 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:50 +0000 (11:12 +0100)
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
core/Migrations/Version13000Date20170718121200.php

index 657ed63e2500abe50e07826bfd07ed57f0421c5d..218497668f964e91c19d648db24c97d8ef776ab5 100644 (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')) {