Created
December 8, 2017 14:30
-
-
Save hanspagel/a3a1699679bfda38848e0e31b78572cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateOauthClientsTable extends Migration | |
{ | |
public function up() | |
{ | |
Schema::create('oauth_clients', function (Blueprint $table) { | |
$table->increments('id'); | |
$table->uuid('user_id')->index()->nullable(); | |
$table->string('name'); | |
$table->string('secret', 100); | |
$table->text('redirect'); | |
$table->boolean('personal_access_client'); | |
$table->boolean('password_client'); | |
$table->boolean('revoked'); | |
$table->timestamps(); | |
}); | |
} | |
public function down() | |
{ | |
Schema::drop('oauth_clients'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment