Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class m170324_000002_remove_old_widgets extends Migration |
||
11 | { |
||
12 | /** |
||
13 | * Any migration code in here is wrapped inside of a transaction. |
||
14 | * |
||
15 | * @return bool |
||
16 | */ |
||
17 | public function safeUp() |
||
18 | { |
||
19 | $this->delete('{{%widgets}}', ['type' => 'Analytics_Chart']); |
||
20 | $this->delete('{{%widgets}}', ['type' => 'Analytics_Stats']); |
||
21 | $this->delete('{{%widgets}}', ['type' => 'Analytics_Reports']); |
||
22 | |||
23 | return true; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @inheritdoc |
||
28 | */ |
||
29 | public function safeDown() |
||
34 | } |
||
35 | } |
||
36 |