CreateFailedJobsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 31
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 11 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
/**
8
 * Class CreateFailedJobsTable
9
 *
10
 * @author  Mahmoud Zalt  <[email protected]>
11
 */
12
class CreateFailedJobsTable extends Migration
13
{
14
15
    /**
16
     * Run the migrations.
17
     *
18
     * @return void
19
     */
20
    public function up()
21
    {
22
        Schema::create('failed_jobs', function (Blueprint $table) {
23
            $table->increments('id');
24
            $table->text('connection');
25
            $table->text('queue');
26
            $table->longText('payload');
27
            $table->longText('exception');
28
            $table->timestamp('failed_at')->useCurrent();
29
        });
30
    }
31
32
    /**
33
     * Reverse the migrations.
34
     *
35
     * @return void
36
     */
37
    public function down()
38
    {
39
        Schema::drop('failed_jobs');
40
    }
41
42
}
43