Passed
Push — master ( 30f336...ab8928 )
by Brian
14:05
created

CreateFailedJobsTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A 2019_08_19_000000_create_failed_jobs_table.php$0 ➔ up() 0 10 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
return new class extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     */
12
    public function up(): void
13
    {
14
        Schema::create('failed_jobs', function (Blueprint $table) {
15
            $table->id();
16
            $table->string('uuid')->unique();
17
            $table->text('connection');
18
            $table->text('queue');
19
            $table->longText('payload');
20
            $table->longText('exception');
21
            $table->timestamp('failed_at')->useCurrent();
22
        });
23
    }
24
25
    /**
26
     * Reverse the migrations.
27
     */
28
    public function down(): void
29
    {
30
        Schema::dropIfExists('failed_jobs');
31
    }
32
};
33