27 lines
669 B
PHP
27 lines
669 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class UpgradePassport extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::table('oauth_clients', function (Blueprint $table) {
|
|
$table->string('secret', 100)->nullable()->change();
|
|
});
|
|
|
|
if (! Schema::hasColumn('oauth_clients', 'provider')) {
|
|
Schema::table('oauth_clients', function (Blueprint $table) {
|
|
$table->string('provider')->after('secret')->nullable();
|
|
});
|
|
}
|
|
}
|
|
}
|