Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | if (!Schema::hasTable('oauth_clients')) { |
||
17 | Schema::create('oauth_clients', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->bigInteger('user_id')->index()->nullable(); |
||
20 | $table->string('name'); |
||
21 | $table->string('secret', 100); |
||
22 | $table->text('redirect')->default('http://localhost'); |
||
23 | $table->text('scopes')->default('[]'); |
||
24 | $table->boolean('personal_access_client')->default(0); |
||
25 | $table->boolean('password_client')->default(0); |
||
26 | $table->boolean('authorization_code_client')->default(0); |
||
27 | $table->boolean('revoked')->default(false); |
||
28 | $table->timestamps(); |
||
29 | }); |
||
30 | } |
||
31 | } |
||
32 | |||
45 |