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

ChangeMessageColumn   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 4 1
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