MakeStatusTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 7 1
A down() 0 3 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class MakeStatusTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     */
12
    public function up()
13
    {
14
        Schema::create('statuses', function (Blueprint $table) {
15
            $table->string('id')->primary();
16
            $table->string('status');
17
            $table->string('optional_reference')->nullable();
18
            $table->text('context')->nullable();
19
        });
20
    }
21
22
    /**
23
     * Reverse the migrations.
24
     */
25
    public function down()
26
    {
27
        Schema::dropIfExists('statuses');
28
    }
29
}
30