Completed
Push — master ( 69e099...31bf2b )
by
unknown
05:08
created

CreateMailTemplatesTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.8666
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('template');
16
            $table->string('type')->default('html');
17
            $table->string('markdown_theme')->nullable();
18
            $table->timestamps();
19
        });
20
    }
21
}
22