diff --git a/src/Storage/DbalNestedSetSchema.php b/src/Storage/DbalNestedSetSchema.php index a30f07e5..467e68fe 100644 --- a/src/Storage/DbalNestedSetSchema.php +++ b/src/Storage/DbalNestedSetSchema.php @@ -27,6 +27,7 @@ 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(['depth']); foreach ($schema->toSql($this->connection->getDatabasePlatform()) as $sql) { $this->connection->exec($sql);