Skip to content

Commit

Permalink
Remove superfluous check
Browse files Browse the repository at this point in the history
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
  • Loading branch information
J0WI committed Nov 27, 2019
1 parent 4f3b63c commit e981ccd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions core/Migrations/Version18000Date20191126000000.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e981ccd

Please sign in to comment.