CreateMailTemplatesTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
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 CreateMailTemplatesTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('mail_templates', function (Blueprint $table) {
12
            $table->increments('id');
13
            $table->string('mailable');
14
            $table->text('subject')->nullable();
15
            $table->text('html_template');
16
            $table->text('text_template')->nullable();
17
            $table->timestamps();
18
        });
19
    }
20
}
21