CreateCartStatusTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 10 1
A down() 0 4 1
1
<?php namespace Bedard\Shop\Updates;
2
3
use October\Rain\Database\Schema\Blueprint;
4
use October\Rain\Database\Updates\Migration;
5
use Schema;
6
7
class CreateCartStatusTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('bedard_shop_cart_status', function (Blueprint $table) {
12
            $table->engine = 'InnoDB';
13
            $table->string('driver')->nullable();
14
            $table->integer('cart_id')->unsigned()->nullable();
15
            $table->integer('status_id')->unsigned()->nullable();
16
            $table->timestamp('created_at')->nullable();
17
        });
18
    }
19
20
    public function down()
21
    {
22
        Schema::dropIfExists('bedard_shop_cart_status');
23
    }
24
}
25