Skip to content

Installation failes because of missing columns #22

@michaelklopf

Description

@michaelklopf

I followed the installation steps

composer require nl.idaas/laravel-openid-connect
php artisan migrate
php artisan passport:install --uuids
php artisan vendor:publish --provider="Idaas\Passport\PassportServiceProvider" --force

And when running

php artisan passport:install --uuids

it throws the errors

Column not found: 1054 Unknown column 'provider' in 'field list' (Connection: mysql, SQL: insert into `oidc_clients` (`user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `client_id`, `updated_at`, `created_at`) values (?, Laravel Personal Access Client, ngXZEOEtQT6wbu32edq4ZqlUZszDEezn7MkQjIh9, ?, http://localhost, 1, 0, 0, 98bf710f-e227-435e-97e0-17e82fcaceac, 2023-03-22 10:13:50, 2023-03-22 10:13:50))

and

Column not found: 1054 Unknown column 'redirect' in 'field list' (Connection: mysql, SQL: insert into `oidc_clients` (`user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `client_id`, `updated_at`, `created_at`) values (?, Laravel Personal Access Client, 793Mh1Yt1J0irPDAr9m6pffPx0Y9S1qnqH0Hj2ED, ?, http://localhost, 1, 0, 0, 98bf717c-7be6-40f9-952a-a78ff26f1cc1, 2023-03-22 10:15:01, 2023-03-22 10:15:01))

I guess that passport has made updates that are not reflected in this package yet?

The problem is solved when adding

            $table->string('provider')->nullable();

            $table->text('redirect');

to the CreateOidcClientsTable migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions