| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function run() |
||
| 19 | { |
||
| 20 | $dict = Dict::create([ |
||
| 21 | 'name' => 'Статус', |
||
| 22 | 'type' => 'select', |
||
| 23 | ]); |
||
| 24 | $create = [ |
||
| 25 | [ |
||
| 26 | 'name' => 'Активно', |
||
| 27 | 'json' => null, |
||
| 28 | 'dict_id' => $dict->id, |
||
| 29 | ], |
||
| 30 | [ |
||
| 31 | 'name' => 'Не активно', |
||
| 32 | 'json' => null, |
||
| 33 | 'dict_id' => $dict->id, |
||
| 34 | ], |
||
| 35 | ]; |
||
| 36 | DictOption::insert($create); |
||
| 37 | } |
||
| 39 |