Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class M180311000000ParentJobs extends Migration |
||
18 | { |
||
19 | /** |
||
20 | * @inheritdoc |
||
21 | */ |
||
22 | public function safeUp() |
||
23 | { |
||
24 | $this->addColumn($this->env->pushTableName, 'parent_id', $this->integer()->after('id')); |
||
25 | $this->createIndex('parent_id', $this->env->pushTableName, 'parent_id'); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function safeDown() |
||
35 | } |
||
36 | } |
||
37 |