Completed
Push — master ( 5d8ba8...93e296 )
by Scott
02:28
created

CreateDriverConfigsTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 10
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 10
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php namespace Bedard\Shop\Updates;
2
3
use Schema;
4
use October\Rain\Database\Schema\Blueprint;
5
use October\Rain\Database\Updates\Migration;
6
7 View Code Duplication
class CreateDriverConfigsTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('bedard_shop_driver_configs', function(Blueprint $table) {
12
            $table->engine = 'InnoDB';
13
            $table->increments('id');
14
            $table->string('driver')->default('');
15
            $table->json('config');
16
            $table->timestamps();
17
        });
18
    }
19
20
    public function down()
21
    {
22
        Schema::dropIfExists('bedard_shop_driver_configs');
23
    }
24
}
25