diff options
Diffstat (limited to 'core/Migrations/Version21000Date20201120141228.php')
-rw-r--r-- | core/Migrations/Version21000Date20201120141228.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/Migrations/Version21000Date20201120141228.php b/core/Migrations/Version21000Date20201120141228.php index 48c924977d0..844679b8d95 100644 --- a/core/Migrations/Version21000Date20201120141228.php +++ b/core/Migrations/Version21000Date20201120141228.php @@ -20,6 +20,18 @@ class Version21000Date20201120141228 extends SimpleMigrationStep { if ($loginNameColumn->getLength() !== 255) { $loginNameColumn->setLength(255); } + $table->changeColumn('type', [ + 'notnull' => false, + ]); + $table->changeColumn('remember', [ + 'notnull' => false, + ]); + $table->changeColumn('last_activity', [ + 'notnull' => false, + ]); + $table->changeColumn('last_check', [ + 'notnull' => false, + ]); } if ($schema->hasTable('dav_job_status')) { @@ -40,6 +52,14 @@ class Version21000Date20201120141228 extends SimpleMigrationStep { } } + if ($schema->hasTable('jobs')) { + $table = $schema->getTable('jobs'); + $table->changeColumn('execution_duration', [ + 'notnull' => false, + 'default' => 0, + ]); + } + return $schema; } } |