CreateGamerEventsTables::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
use Illuminate\Database\Migrations\Migration;
3
use Illuminate\Database\Schema\Blueprint;
4
5
class CreateGamerEventsTables extends Migration
6
{
7
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create(
16
            'gamer_events', function (Blueprint $table) {
17
                $table->engine = 'InnoDB';
18
                $table->increments('id')->unsigned();
19
                $table->string('event', 255)->nullable();
20
                $table->integer('user_id')->nullable();
21
                $table->integer('position')->nullable();
22
                $table->integer('value')->nullable();
23
                $table->timestamps();
24
                $table->softDeletes();
25
            }
26
        );
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
        Schema::drop('gamer_events');
37
    }
38
}
39