Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | return new class extends Migration |
||
19 | { |
||
20 | /** |
||
21 | * Run the migrations. |
||
22 | */ |
||
23 | public function up(): void |
||
24 | { |
||
25 | $this->schema->create((new Reacter())->getTable(), function (Blueprint $table) { |
||
26 | $table->bigIncrements('id'); |
||
27 | $table->string('type'); |
||
28 | $table->timestamps(); |
||
29 | |||
30 | $table->index('type'); |
||
31 | }); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Reverse the migrations. |
||
36 | */ |
||
37 | public function down(): void |
||
40 | } |
||
41 | }; |
||
42 |