From e981ccd1b7b32d749a8f1b8c7b6af6bdfba57205 Mon Sep 17 00:00:00 2001 From: J0WI Date: Wed, 27 Nov 2019 17:51:09 +0100 Subject: [PATCH] Remove superfluous check Signed-off-by: J0WI --- core/Migrations/Version18000Date20191126000000.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/core/Migrations/Version18000Date20191126000000.php b/core/Migrations/Version18000Date20191126000000.php index 00d2cfbb621c1..a061c392908d2 100644 --- a/core/Migrations/Version18000Date20191126000000.php +++ b/core/Migrations/Version18000Date20191126000000.php @@ -39,15 +39,13 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); - if ($schema->hasTable('properties')) { - $table = $schema->getTable('properties'); + $table = $schema->getTable('properties'); - $table->changeColumn('propertypath', [ - 'notnull' => true, - 'length' => 4000, - 'default' => '', - ]); - } + $table->changeColumn('propertypath', [ + 'notnull' => true, + 'length' => 4000, + 'default' => '', + ]); return $schema; }