| Total Complexity | 4 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class m181216_043222_rebuild_indexes extends Migration |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @inheritdoc |
||
| 15 | */ |
||
| 16 | public function safeUp() |
||
| 17 | { |
||
| 18 | $this->dropIndexes(); |
||
| 19 | $this->createIndexes(); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function safeDown() |
||
| 26 | { |
||
| 27 | echo "m181216_043222_rebuild_indexes cannot be reverted.\n"; |
||
| 28 | return false; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | protected function createIndexes() |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return void |
||
| 61 | */ |
||
| 62 | protected function dropIndexes() |
||
| 83 |