RecordCommitter::change()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 13
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class RecordCommitter extends AbstractMigration
6
{
7
    /**
8
     * @author Ronan Chilvers <[email protected]>
9
     */
10
    public function change()
11
    {
12
        $table = $this->table('deployments');
13
        $table
14
            ->addColumn(
15
                'deployment_committer',
16
                'string',
17
                [
18
                    'length' => 1024,
19
                    'null'   => false,
20
                ]
21
            )
22
            ->update();
23
    }
24
}
25