AddTableCmsEmailQueues   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 14
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 16 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class AddTableCmsEmailQueues extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('cms_email_queues', function (Blueprint $table) {
16
            $table->increments('id');
17
18
            $table->dateTime('send_at')->nullable();
19
            $table->string('email_recipient')->nullable();
20
            $table->string('email_from_email')->nullable();
21
            $table->string('email_from_name')->nullable();
22
            $table->string('email_cc_email')->nullable();
23
            $table->string('email_subject')->nullable();
24
            $table->text('email_content')->nullable();
25
            $table->text('email_attachments')->nullable();
26
            $table->boolean('is_sent')->nullable();
27
28
            $table->timestamps();
29
        });
30
    }
31
32
    /**
33
     * Reverse the migrations.
34
     *
35
     * @return void
36
     */
37
    public function down()
38
    {
39
        Schema::drop('cms_email_queues');
40
    }
41
}
42