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

CreateLERNTables::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 14
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
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
}