Skip to content

Commit cc80677

Browse files
[13.x] Document changes to oauth_clients table in upgrade guide (#1823)
* Update UPGRADE.md * Update UPGRADE.md * Update UPGRADE.md * Update UPGRADE.md * Update UPGRADE.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 3a3401f commit cc80677

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

UPGRADE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ The JSON API provided by Passport has been deprecated. If you need to continue u
9797
Passport::$registersJsonApiRoutes = true;
9898
}
9999

100+
### OAuth Client Table Changes (Optional)
101+
102+
PR: https://github.com/laravel/passport/pull/1744, https://github.com/laravel/passport/pull/1797
103+
104+
Passport's `oauth_clients` table has been changed in several ways:
105+
106+
- The `user_id` column has been replaced by the `owner_type` and `owner_id` columns.
107+
- The `redirect` column has been replaced by the `redirect_uris` column. The new column needs to store an array of URLs.
108+
- 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.
109+
110+
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).
111+
100112
## Upgrading To 12.0 From 11.x
101113

102114
### Migration Changes

0 commit comments

Comments
 (0)