Skip to content

Commit

Permalink
Update core/Migrations/Version19000Date20200429140134.php
Browse files Browse the repository at this point in the history
Co-authored-by: Morris Jobke <[email protected]>
  • Loading branch information
mario and MorrisJobke authored Apr 30, 2020
1 parent 1dd9555 commit d8cc68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Migrations/Version19000Date20200429140134.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

if ($schema->hasTable('oc_properties')) {
$table = $schema->getTable('oc_properties');
if ($schema->hasTable('properties')) {
$table = $schema->getTable('properties');
$table->addIndex(['userid', 'propertypath'], 'properties_path_index');
}
return $schema;
Expand Down

0 comments on commit d8cc68d

Please sign in to comment.