Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class m200812_090059_add_default_column extends Migration |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | public function safeUp() |
||
14 | { |
||
15 | $this->addColumn( |
||
16 | '{{%category}}', |
||
17 | 'default', |
||
18 | $this->tinyInteger()->defaultValue(0)->after('status') |
||
19 | ); |
||
20 | |||
21 | $this->addColumn( |
||
22 | '{{%account}}', |
||
23 | 'default', |
||
24 | $this->tinyInteger()->defaultValue(0)->after('credit_card_billing_day') |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function safeDown() |
||
37 | } |
||
38 | |||
54 |