Total Complexity | 9 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class m180328_085629_add_indexes extends Migration |
||
9 | { |
||
10 | private $columns = []; |
||
11 | private $tableName; |
||
12 | private $indexPrefix = 'ix_'; |
||
13 | |||
14 | |||
15 | private function setUp($model) { |
||
27 | ]; |
||
28 | } |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function safeUp() |
||
35 | { |
||
36 | $this->setUp('language'); |
||
37 | $this->createIndexes(); |
||
38 | $this->setUp('language_translation'); |
||
39 | $this->createIndexes(); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function safeDown() |
||
46 | { |
||
47 | $this->setUp('language'); |
||
48 | $this->dropIndexes(); |
||
49 | $this->setUp('language_translation'); |
||
50 | $this->dropIndexes(); |
||
51 | } |
||
52 | |||
53 | |||
54 | |||
55 | |||
56 | private function createIndexes(){ |
||
59 | } |
||
60 | } |
||
61 | |||
62 | private function dropIndexes(){ |
||
69 |