CreateFfmpegQueueTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 9
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 9.9666
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