AlterIncidents   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 17
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A change() 0 9 1
1
<?php
2
3
use Migrations\AbstractMigration;
4
5
class AlterIncidents extends AbstractMigration
6
{
7
    /**
8
     * Change Method.
9
     *
10
     * More information on this method is available here:
11
     * http://docs.phinx.org/en/latest/migrations.html#the-change-method
12
     */
13
    public function change(): void
14
    {
15
        $table = $this->table('incidents');
16
        $table->changeColumn('error_message', 'string', [
17
            'default' => null,
18
            'limit' => 200,
19
            'null' => true,
20
        ]);
21
        $table->update();
22
    }
23
}
24