CreatePlayersTable::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreatePlayersTable extends Migration
8
{
9
10
    /**
11
     * Run the migrations.
12
     *
13
     * @return void
14
     */
15
    public function up()
16
    {
17
        Schema::create('players', function(Blueprint $table) {
18
            $table->increments('id');
19
20
            $table->string('facebook_id', 128)->nullable();
21
            $table->string('gamecenter_id', 128)->nullable();
22
            $table->string('playgames_id', 128)->nullable();
23
            $table->string('udid', 128)->nullable();
24
            $table->string('name', 128)->nullable();
25
            $table->string('ip', 15);
26
            
27
            $table->timestamps();
28
        });
29
    }
30
31
    /**
32
     * Reverse the migrations.
33
     *
34
     * @return void
35
     */
36
    public function down()
37
    {
38
        Schema::dropIfExists('players');
39
    }
40
41
}
42