| @@ 122-132 (lines=11) @@ | ||
| 119 | /** |
|
| 120 | * @return AbstractIndex[] |
|
| 121 | */ |
|
| 122 | public function addedIndexes() |
|
| 123 | { |
|
| 124 | $difference = []; |
|
| 125 | foreach ($this->current->getIndexes() as $name => $index) { |
|
| 126 | if (!$this->initial->knowsIndex($name)) { |
|
| 127 | $difference[] = $index; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | ||
| 131 | return $difference; |
|
| 132 | } |
|
| 133 | ||
| 134 | /** |
|
| 135 | * @return AbstractIndex[] |
|
| @@ 137-147 (lines=11) @@ | ||
| 134 | /** |
|
| 135 | * @return AbstractIndex[] |
|
| 136 | */ |
|
| 137 | public function droppedIndexes() |
|
| 138 | { |
|
| 139 | $difference = []; |
|
| 140 | foreach ($this->initial->getIndexes() as $name => $index) { |
|
| 141 | if (!$this->current->knowsIndex($name)) { |
|
| 142 | $difference[] = $index; |
|
| 143 | } |
|
| 144 | } |
|
| 145 | ||
| 146 | return $difference; |
|
| 147 | } |
|
| 148 | ||
| 149 | ||
| 150 | /** |
|