| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function migrateUp() |
||
| 20 | { |
||
| 21 | $this->builder->create( |
||
| 22 | $this->table, |
||
| 23 | function ($table) { |
||
| 24 | $table->bigIncrements('id'); |
||
| 25 | |||
| 26 | $table->string('kind', 16)->index(); |
||
| 27 | $table->string('model', 64)->index(); |
||
| 28 | $table->string('platform', 64)->index(); |
||
| 29 | $table->string('platform_version', 16)->index(); |
||
| 30 | $table->boolean('is_mobile'); |
||
| 31 | |||
| 32 | $table->unique(['kind', 'model', 'platform', 'platform_version']); |
||
| 33 | |||
| 34 | $table->timestamps(); |
||
| 35 | $table->index('created_at'); |
||
| 36 | $table->index('updated_at'); |
||
| 37 | } |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 51 |