Passed
Push — master ( 38224a...a3a793 )
by Gabriel
02:06
created

ChangeMessageColumn::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class ChangeMessageColumn extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::table('mail_log', function (Blueprint $table) {
12
            $table->longText('message')->change();
13
        });
14
    }
15
16
    public function down()
17
    {
18
        Schema::table('mail_log', function (Blueprint $table) {
19
            $table->text('message')->change();
20
        });
21
    }
22
}
23