CreateLogsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 13 1
A down() 0 4 1
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