Skip to content

Commit abfaf30

Browse files
chore(UPGRADE): v13, update oauth_clients table schema changes (#1865)
* chore(UPGRADE): v13, update oauth_clients table schema changes * Update UPGRADE.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent ae25d64 commit abfaf30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

UPGRADE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Schema::table('oauth_clients', function (Blueprint $table) {
142142
$table->nullableMorphs('owner', after: 'user_id');
143143

144144
$table->after('provider', function (Blueprint $table) {
145-
$table->text('redirect_uris');
145+
$table->text('redirect_uris')->nullable();
146146
$table->text('grant_types')->nullable();
147147
});
148148
});
@@ -160,6 +160,9 @@ foreach (Passport::client()->cursor() as $client) {
160160

161161
Schema::table('oauth_clients', function (Blueprint $table) {
162162
$table->dropColumn(['user_id', 'redirect', 'personal_access_client', 'password_client']);
163+
164+
$table->text('redirect_uris')->nullable(false)->change();
165+
$table->text('grant_types')->nullable(false)->change();
163166
});
164167
```
165168

0 commit comments

Comments
 (0)