diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-09 12:13:02 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-09 15:23:29 +0100 |
commit | 0befe071275c8f0f7599a883862884684e19b43a (patch) | |
tree | be49980570bfdee8574eb2483f64340428fc2c23 /core/Migrations/Version13000Date20170718121200.php | |
parent | 20949d7f48d2466ee679981a2ef89b4c0fdd313c (diff) | |
download | nextcloud-server-0befe071275c8f0f7599a883862884684e19b43a.tar.gz nextcloud-server-0befe071275c8f0f7599a883862884684e19b43a.zip |
Change further columns to be nullable with a default of 0
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Migrations/Version13000Date20170718121200.php')
-rw-r--r-- | core/Migrations/Version13000Date20170718121200.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index ffd230e19ad..3acdc3122e3 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -518,12 +518,6 @@ 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')) { @@ -576,25 +570,25 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { 'default' => '', ]); $table->addColumn('type', 'smallint', [ - 'notnull' => true, + 'notnull' => false, 'length' => 2, 'default' => 0, 'unsigned' => true, ]); $table->addColumn('remember', 'smallint', [ - 'notnull' => true, + 'notnull' => false, 'length' => 1, 'default' => 0, 'unsigned' => true, ]); $table->addColumn('last_activity', 'integer', [ - 'notnull' => true, + 'notnull' => false, 'length' => 4, 'default' => 0, 'unsigned' => true, ]); $table->addColumn('last_check', 'integer', [ - 'notnull' => true, + 'notnull' => false, 'length' => 4, 'default' => 0, 'unsigned' => true, |