CreateLogsTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Bedard\Webhooks\Updates;
2
3
use Schema;
4
use October\Rain\Database\Updates\Migration;
5
6
class CreateLogsTable extends Migration
7
{
8
9
    public function up()
10
    {
11
        Schema::create('bedard_webhooks_logs', function($table)
12
        {
13
            $table->engine = 'InnoDB';
14
            $table->increments('id');
15
            $table->integer('hook_id')->unsigned()->index();
16
            $table->longText('output')->nullable();
17
            $table->text('referrer')->nullable();
18
            $table->integer('status_code')->nullable();
19
            $table->timestamps();
20
        });
21
    }
22
23
    public function down()
24
    {
25
        Schema::dropIfExists('bedard_webhooks_logs');
26
    }
27
28
}
29