CreateNullableCmsApicustom   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 13 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateNullableCmsApicustom extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::table('cms_apicustom', function (Blueprint $table) {
16
            $table->string('permalink')->nullable()->change();
17
            $table->string('tabel')->nullable()->change();
18
            $table->string('aksi')->nullable()->change();
19
            $table->string('kolom')->nullable()->change();
20
            $table->string('orderby')->nullable()->change();
21
            $table->string('sub_query_1')->nullable()->change();
22
            $table->string('sql_where')->nullable()->change();
23
            $table->string('nama')->nullable()->change();
24
            $table->string('keterangan')->nullable()->change();
25
            $table->string('parameter')->nullable()->change();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
        Schema::table('cms_settings', function (Blueprint $table) {
0 ignored issues
show
Unused Code introduced by
The parameter $table is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

36
        Schema::table('cms_settings', function (/** @scrutinizer ignore-unused */ Blueprint $table) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
            //
38
        });
39
    }
40
}
41