CreateFfmpegQueueTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 11
c 2
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 12 1
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
use Mostafaznv\Larupload\Larupload;
7
8
class CreateFfmpegQueueTable extends Migration
9
{
10
    public function up()
11
    {
12
        Schema::create(Larupload::FFMPEG_QUEUE_TABLE, function(Blueprint $table) {
13
            $table->increments('id');
14
            $table->unsignedInteger('record_id');
15
            $table->string('record_class', 50);
16
            $table->boolean('status')->default(0);
17
            $table->text('message')->nullable();
18
19
            $table->timestamp('created_at')->nullable();
20
            $table->timestamp('started_at')->nullable();
21
            $table->timestamp('finished_at')->nullable();
22
        });
23
    }
24
25
    public function down()
26
    {
27
        Schema::dropIfExists(Larupload::FFMPEG_QUEUE_TABLE);
28
    }
29
}
30