Passed
Push — master ( f218e6...f51c1b )
by Arthur
04:59
created

CreateUserMigration::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 11
nc 1
nop 0
dl 0
loc 13
rs 9.9
c 0
b 0
f 0
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
class CreateUserMigration extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('users', function (Blueprint $table) {
16
            $table->increments('id');
17
            $table->string('identity_id')->unique();
18
            $table->string('email');
19
            $table->boolean('email_verified');
20
            $table->string('name');
21
            $table->string('gender');
22
            $table->string('username');
23
            $table->string('avatar');
24
            $table->string('provider');
25
            $table->timestamps();
26
        });
27
    }
28
    /**
29
     * Reverse the migrations.
30
     *
31
     * @return void
32
     */
33
    public function down()
34
    {
35
        Schema::dropIfExists('users');
36
    }
37
}
38