m160802_130555_addFilesStatuses   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A initInverter() 0 16 1
1
<?php
2
namespace execut\import\migrations;
3
class m160802_130555_addFilesStatuses extends \execut\yii\migration\Migration
4
{
5
    // Use safeUp/safeDown to run migration code within a transaction
6
    public function initInverter(\execut\yii\migration\Inverter $i)
7
    {
8
        $i->table('import_files_statuses')->batchInsert([
9
            'id',
10
            'key',
11
            'name'
12
        ], [
13
            [
14
                7,
15
                'stop',
16
                'Остановить',
17
            ],
18
            [
19
                8,
20
                'stoped',
21
                'Остановлен',
22
            ],
23
        ]);
24
    }
25
}
26