CreateMailLogTables   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 11 1
A down() 0 3 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 CreateMailLogTables extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('mail_log', function (Blueprint $table) {
12
            $table->bigIncrements('id');
13
            $table->text('to')->nullable();
14
            $table->text('cc')->nullable();
15
            $table->text('bcc')->nullable();
16
            $table->text('subject')->nullable();
17
            $table->text('message')->nullable();
18
            $table->json('data')->nullable();
19
            $table->timestamps();
20
        });
21
    }
22
23
    public function down()
24
    {
25
        Schema::drop('mail_log');
26
    }
27
}
28