Skip to content

Commit 354dfb3

Browse files
committed
Adds more indexes
1 parent 61930b0 commit 354dfb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Storage/DbalNestedSetSchema.php

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public function create() {
2626
$tree->addIndex(['id', 'revision_id', 'left_pos', 'right_pos', 'depth']);
2727
$tree->addIndex(['left_pos', 'right_pos']);
2828
$tree->addIndex(['right_pos']);
29+
$tree->addIndex(['left_pos']);
30+
$tree->addIndex(['depth']);
2931

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

0 commit comments

Comments
 (0)