Skip to content

[13.x] Document changes to oauth_clients table in upgrade guide #1823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ The JSON API provided by Passport has been deprecated. If you need to continue u
Passport::$registersJsonApiRoutes = true;
}

### OAuth Client Table Changes (Optional)

PR: https://github.com/laravel/passport/pull/1744, https://github.com/laravel/passport/pull/1797

Passport's `oauth_clients` table has been changed in several ways:

- The `user_id` column has been replaced by the `owner_type` and `owner_id` columns.
- The `redirect` column has been replaced by the `redirect_uris` column. The new column needs to store an array of URLs.
- The `personal_access_client` and `password_client` columns have been replaced by the `grant_types` column. The new column needs to store an array of OAuth 2 grant types.

Passport's `Laravel\Passport\Database\Factories\ClientFactory` factory class has been updated to reflect the changes to this table. If you do not want to make these changes to your application's `oauth_clients` table, you may use the [old Client factory class](https://github.com/laravel/passport/blob/12.x/database/factories/ClientFactory.php).

## Upgrading To 12.0 From 11.x

### Migration Changes
Expand Down