| @@ 189-196 (lines=8) @@ | ||
| 186 | * |
|
| 187 | * @throws SchemaException If the index does not exist. |
|
| 188 | */ |
|
| 189 | public function dropIndex($indexName) |
|
| 190 | { |
|
| 191 | $indexName = $this->normalizeIdentifier($indexName); |
|
| 192 | if ( ! $this->hasIndex($indexName)) { |
|
| 193 | throw SchemaException::indexDoesNotExist($indexName, $this->_name); |
|
| 194 | } |
|
| 195 | unset($this->_indexes[$indexName]); |
|
| 196 | } |
|
| 197 | ||
| 198 | /** |
|
| 199 | * @param array $columnNames |
|
| @@ 753-761 (lines=9) @@ | ||
| 750 | * |
|
| 751 | * @throws SchemaException If the index does not exist. |
|
| 752 | */ |
|
| 753 | public function getIndex($indexName) |
|
| 754 | { |
|
| 755 | $indexName = $this->normalizeIdentifier($indexName); |
|
| 756 | if ( ! $this->hasIndex($indexName)) { |
|
| 757 | throw SchemaException::indexDoesNotExist($indexName, $this->_name); |
|
| 758 | } |
|
| 759 | ||
| 760 | return $this->_indexes[$indexName]; |
|
| 761 | } |
|
| 762 | ||
| 763 | /** |
|
| 764 | * @return Index[] |
|