Problem is PassportServiceProvider does not publish migrations to database folder and running it form vendor dir instead.
Jan 10, 2017
5
Level 1
Customize Passport migrations
I need to customize oauth_clients migration because I use UUID for user id
How can i do this?
Level 11
@rmoiseev You will have to make a new migration that will change the table instead. You can run the following command and then modify the up method like below.
php artisan make:migration --table=oauth_clients update_user_id_to_uuid_on_oauth_clients_table
public function up()
{
Schema::table('oauth_clients', function (Blueprint $table) {
$table->uuid('user_id')->index()->nullable()->change();
});
}
In order to do this though, you will need to require dbal with composer.
composer require doctrine/dbal
4 likes
Please or to participate in this conversation.