CreateSwivelTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 27
ccs 9
cts 9
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 7 1
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateSwivelTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14 3
    public function up()
15
    {
16
        \Schema::create('swivel_features', function (Blueprint $table) {
17 3
            $table->integer('id', true, true);
18 3
            $table->string('slug')->unique();
19 3
            $table->string('buckets', 20)->default('');
20 3
            $table->timestamps();
21
22
            // key section
23 3
        });
24 3
    }
25
26
    /**
27
     * Reverse the migrations.
28
     *
29
     * @return void
30
     */
31 3
    public function down()
32
    {
33 3
        \Schema::dropIfExists('swivel_features');
34 3
    }
35
}
36