We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778b646 commit 9af76d0Copy full SHA for 9af76d0
docs/en/reference/schema-manager.rst
@@ -139,7 +139,12 @@ Now you can loop over the array inspecting each index object:
139
140
<?php
141
foreach ($indexes as $index) {
142
- echo $index->getObjectName()->toString() . ': ' . ($index->isUnique() ? 'unique' : 'not unique') . PHP_EOL;
+ echo $index->getObjectName()->toString() . ': ' . match($index->getType()) {
143
+ IndexType::REGULAR => 'regular',
144
+ IndexType::UNIQUE => 'unique',
145
+ IndexType::FULLTEXT => 'fulltext',
146
+ IndexType::SPATIAL => 'spatial',
147
+ } . PHP_EOL;
148
}
149
150
listTables()
0 commit comments