CreateBinaryRolesTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 2
eloc 6
c 2
b 2
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 6 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 CreateBinaryRolesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     */
12
    public function up()
13
    {
14
        Schema::create('binary_roles', function (Blueprint $table) {
15
            $table->binary('role_id');
16
            $table->string('name');
17
            $table->unsignedInteger('counter')->default(0);
18
        });
19
    }
20
21
    /**
22
     * Reverse the migrations.
23
     */
24
    public function down()
25
    {
26
        Schema::drop('binary_roles');
27
    }
28
}
29