Total Complexity | 2 |
Total Lines | 27 |
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 ReactionType())->getTable(), function (Blueprint $table) { |
||
26 | $table->bigIncrements('id'); |
||
27 | $table->string('name'); |
||
28 | $table->tinyInteger('mass'); |
||
29 | $table->timestamps(); |
||
30 | |||
31 | $table->index('name'); |
||
32 | }); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Reverse the migrations. |
||
37 | */ |
||
38 | public function down(): void |
||
41 | } |
||
42 | }; |
||
43 |