Completed
Push — master ( 895b0e...aee8bc )
by Ricardo
02:27
created

CreateOauthClientsTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
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
7
class CreateOauthClientsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create(
17
            'oauth_clients', function (Blueprint $table) {
18
                $table->increments('id');
19
                $table->integer('user_id')->index()->nullable();
20
                $table->string('name');
21
                $table->string('secret', 100);
22
                $table->text('redirect');
23
                $table->boolean('personal_access_client');
24
                $table->boolean('password_client');
25
                $table->boolean('revoked');
26
                $table->timestamps();
27
            }
28
        );
29
    }
30
31
    /**
32
     * Reverse the migrations.
33
     *
34
     * @return void
35
     */
36
    public function down()
37
    {
38
        Schema::dropIfExists('oauth_clients');
39
    }
40
}
41