Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class CreateLoveReactionTypesTable extends Migration |
||
19 | { |
||
20 | /** |
||
21 | * Run the migrations. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function up(): void |
||
26 | { |
||
27 | Schema::create('love_reaction_types', function (Blueprint $table) { |
||
28 | $table->bigIncrements('id'); |
||
29 | $table->string('name'); |
||
30 | $table->tinyInteger('weight'); |
||
31 | $table->timestamps(); |
||
32 | |||
33 | $table->index('name'); |
||
34 | }); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Reverse the migrations. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function down(): void |
||
45 | } |
||
46 | } |
||
47 |