diff --git a/src/Storage/DbalNestedSetSchema.php b/src/Storage/DbalNestedSetSchema.php index d8e57b66..c10a4cf6 100644 --- a/src/Storage/DbalNestedSetSchema.php +++ b/src/Storage/DbalNestedSetSchema.php @@ -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);