MakeStatusTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 5
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 7
rs 10
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