Completed
Push — master ( ead0c0...053e43 )
by Tyler
03:12
created

CreateLERNTables   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 33
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 14 1
A down() 0 4 1
1
<?php
2
3
namespace Tylercd100\LERN\Migrations;
4
5
use Illuminate\Database\Migrations\Migration;
6
use Illuminate\Database\Schema\Blueprint;
7
8
class CreateLERNTables extends Migration {
9
10
    /**
11
     * Run the migrations.
12
     *
13
     * @return void
14
     */
15
    public function up()
16
    {
17
        Schema::create(config('lern.record.table'), function(Blueprint $table) {
18
            $table->increments('id')->unsigned();
19
            $table->string('class');
20
            $table->string('file');
21
            $table->integer('code');
22
            $table->integer('status_code')->default(0);
23
            $table->integer('line');
24
            $table->text('message');
25
            $table->mediumText('trace');
26
            $table->timestamps();
27
        });
28
    }
29
30
    /**
31
     * Reverse the migrations.
32
     *
33
     * @return void
34
     */
35
    public function down()
36
    {
37
        Schema::drop(config('lern.record.table'));
38
    }
39
40
}