| Conditions | 2 |
| Paths | 4 |
| Total Lines | 27 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function migrateUp() |
||
| 20 | { |
||
| 21 | try { |
||
| 22 | $this->builder->table( |
||
| 23 | $this->table, |
||
| 24 | function ($table) { |
||
| 25 | $table->dropUnique('tracker_agents_name_unique'); |
||
| 26 | } |
||
| 27 | ); |
||
| 28 | |||
| 29 | $this->builder->table( |
||
| 30 | $this->table, |
||
| 31 | function ($table) { |
||
| 32 | $table->mediumText('name')->change(); |
||
| 33 | } |
||
| 34 | ); |
||
| 35 | |||
| 36 | $this->builder->table( |
||
| 37 | $this->table, |
||
| 38 | function ($table) { |
||
| 39 | $table->unique('id', 'tracker_agents_name_unique'); // this is a dummy index |
||
| 40 | } |
||
| 41 | ); |
||
| 42 | } catch (\Exception $e) { |
||
| 43 | dd($e->getMessage()); |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 66 |