m160802_130555_addFilesStatuses::initInverter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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