Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hanspagel/a3a1699679bfda38848e0e31b78572cf to your computer and use it in GitHub Desktop.
Save hanspagel/a3a1699679bfda38848e0e31b78572cf to your computer and use it in GitHub Desktop.
<?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