Completed
Push — master ( dd1490...f93abb )
by Tyler
02:44
created

AddIpToLernTables::down()   A

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\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class AddIpToLernTables extends Migration {
7
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::table(config('lern.record.table'), function(Blueprint $table) {
16
            $table->string('ip')->nullable();
17
        });
18
    }
19
20
    /**
21
     * Reverse the migrations.
22
     *
23
     * @return void
24
     */
25
    public function down()
26
    {
27
        Schema::table(config('lern.record.table'), function(Blueprint $table) {
28
            $table->dropColumn('ip');
29
        });
30
    }
31
32
}