| @@ 128-137 (lines=10) @@ | ||
| 125 | * |
|
| 126 | * @return AlterTable[][] |
|
| 127 | */ |
|
| 128 | protected function updatesSequence() |
|
| 129 | { |
|
| 130 | return [ |
|
| 131 | $this->tableUpdates, |
|
| 132 | $this->constraints, |
|
| 133 | $this->indexes, |
|
| 134 | $this->columnRemoves, |
|
| 135 | $this->tableMoves, |
|
| 136 | ]; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * Returns a nested list of all the steps to execute for a rollback plan |
|
| @@ 144-153 (lines=10) @@ | ||
| 141 | * |
|
| 142 | * @return AlterTable[][] |
|
| 143 | */ |
|
| 144 | protected function inverseUpdatesSequence() |
|
| 145 | { |
|
| 146 | return [ |
|
| 147 | $this->tableMoves, |
|
| 148 | $this->constraints, |
|
| 149 | $this->indexes, |
|
| 150 | $this->columnRemoves, |
|
| 151 | $this->tableUpdates |
|
| 152 | ]; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * Executes this plan using the given AdapterInterface |
|