Skip to content

Commit

Permalink
Adds more indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
larowlan committed May 30, 2017
1 parent 61930b0 commit 354dfb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Storage/DbalNestedSetSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function create() {
$tree->addIndex(['id', 'revision_id', 'left_pos', 'right_pos', 'depth']);
$tree->addIndex(['left_pos', 'right_pos']);
$tree->addIndex(['right_pos']);
$tree->addIndex(['left_pos']);
$tree->addIndex(['depth']);

foreach ($schema->toSql($this->connection->getDatabasePlatform()) as $sql) {
$this->connection->exec($sql);
Expand Down

0 comments on commit 354dfb3

Please sign in to comment.