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
Unused Code
introduced
by
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 |