AddColumnIsApiProductBacklogsTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
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
7
class AddColumnIsApiProductBacklogsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     */
12
    public function up()
13
    {
14
        Schema::table('product_backlogs', function (Blueprint $table) {
15
            $table->boolean('is_api')->nullable()->after('position');
16
        });
17
    }
18
19
    /**
20
     * Reverse the migrations.
21
     */
22
    public function down()
23
    {
24
        Schema::table('product_backlogs', function (Blueprint $table) {
25
            $table->dropColumn('is_api');
26
        });
27
    }
28
}
29