Passed
Push — tests ( 722676...5a1186 )
by Dallas
12:44
created

CreateFeatureTable2   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 4 1
A up() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
use Illuminate\Database\Migrations\Migration;
6
use Illuminate\Database\Schema\Blueprint;
7
use Illuminate\Support\Facades\DB;
8
use Illuminate\Support\Facades\Schema;
9
10
class CreateFeatureTable2 extends Migration
11
{
12
    public function up(): void
13
    {
14
        DB::transaction(function () {
15
            Schema::create('feature_table2', function (Blueprint $table) {
16
                $table->bigIncrements('id');
17
            });
18
        });
19
    }
20
21
    public function down(): void
22
    {
23
        DB::transaction(function () {
24
            Schema::drop('feature_table2');
25
        });
26
    }
27
}
28