Test Failed
Push — 1.1 ( ecfb4c...3ddbea )
by
unknown
04:06 queued 02:03
created

CreateLaravelOpdTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 15
rs 9.4285
cc 1
eloc 12
nc 1
nop 0
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
use Kalnoy\Nestedset\NestedSet;
7
8
9
10
class CreateLaravelOpdTable extends Migration
11
{
12
    /**
13
     * Run the migrations.
14
     *
15
     * @return void
16
     */
17
    public function up()
18
    {
19
        Schema::create('opd', function (Blueprint $table) {
20
            //$table->increments('id');
21
            $table->uuid('id')->unique();
22
            $table->primary('id');
23
            $table->string('kunker')->index();
24
            $table->string('name');
25
            $table->string('kunker_sinjab')->nullable();            
26
            $table->string('kunker_simral')->nullable();
27
            $table->integer('levelunker');
28
            $table->string('njab');
29
            $table->string('npej');
30
            NestedSet::columns($table);
31
            $table->timestamps();   
32
        });
33
    }
34
35
    /**
36
     * Reverse the migrations.
37
     *
38
     * @return void
39
     */
40
    public function down()
41
    {
42
        Schema::dropIfExists('opd');
43
    }
44
}
45