Completed
Push — master ( de5c78...60eb24 )
by Sherif
09:23
created

Users::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 9.6666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class Users 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
            increments('id');
17
            $table->string('profile_picture', 150)->nullable();
18
            $table->string('name', 100)->nullable();
19
            $table->string('email')->unique();
20
            $table->string('password', 60)->nullable();
21
            $table->boolean('blocked')->default(0);
22
            $table->boolean('confirmed')->default(0);
23
            $table->string('confirmation_code')->nullable();
24
            $table->string('locale', 2)->default('en');
25
            $table->string('timezone', 50)->default('Africa/Cairo');
26
            $table->softDeletes();
27
            $table->rememberToken();
28
            $table->timestamps();
29
        });
30
    }
31
32
    /**
33
     * Reverse the migrations.
34
     *
35
     * @return void
36
     */
37
    public function down()
38
    {
39
        Schema::dropIfExists('users');
40
    }
41
}
42