Passed
Push — master ( 662d52...2a8232 )
by eXeCUT
03:58
created

migrations/m161220_070554_addMimeTypeToFiles.php (1 issue)

Severity
1
<?php
2
namespace execut\import\migrations;
3
class m161220_070554_addMimeTypeToFiles extends \execut\yii\migration\Migration
4
{
5
    public function initInverter(\execut\yii\migration\Inverter $i)
6
    {
7
        $types = $i->table('import_settings')
0 ignored issues
show
The assignment to $types is dead and can be removed.
Loading history...
8
            ->addColumn('is_check_mime_type', $this->boolean())
9
            ->alterColumnSetDefault('is_check_mime_type', 'true')
10
            ->update([
11
                'is_check_mime_type' => true,
12
            ])
13
            ->alterColumnSetNotNull('is_check_mime_type');
14
    }
15
}
16