AddTableCmsApicustom   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 15
dl 0
loc 35
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 17 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class AddTableCmsApicustom extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('cms_apicustom', function (Blueprint $table) {
16
            $table->increments('id');
17
18
            $table->string('permalink')->nullable();
19
            $table->string('tabel')->nullable();
20
            $table->string('aksi')->nullable();
21
            $table->text('kolom')->nullable();
22
            $table->string('orderby')->nullable();
23
            $table->text('sub_query_1')->nullable();
24
            $table->text('sql_where')->nullable();
25
            $table->string('nama')->nullable();
26
            $table->string('keterangan')->nullable();
27
            $table->string('parameter')->nullable();
28
29
            $table->timestamps();
30
        });
31
    }
32
33
    /**
34
     * Reverse the migrations.
35
     *
36
     * @return void
37
     */
38
    public function down()
39
    {
40
        Schema::drop('cms_apicustom');
41
    }
42
}
43