DeploymentOriginal::change()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 10
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class DeploymentOriginal 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('deployment_original', 'integer', [
15
                'null'   => false,
16
                'default'=> 0,
17
                'after'  => 'deployment_number',
18
            ])
19
            ->update();
20
    }
21
}
22