diff --git a/database/migrations/2026_07_17_154027_create_oauth_auth_codes_table.php b/database/migrations/2026_07_17_154027_create_oauth_auth_codes_table.php index c700b50e..8eefa44d 100644 --- a/database/migrations/2026_07_17_154027_create_oauth_auth_codes_table.php +++ b/database/migrations/2026_07_17_154027_create_oauth_auth_codes_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('oauth_auth_codes', function (Blueprint $table) { $table->char('id', 80)->primary(); - $table->foreignId('user_id')->index(); + $table->foreignUuid('user_id')->index(); $table->foreignUuid('client_id'); $table->text('scopes')->nullable(); $table->boolean('revoked'); diff --git a/database/migrations/2026_07_17_154028_create_oauth_access_tokens_table.php b/database/migrations/2026_07_17_154028_create_oauth_access_tokens_table.php index 3e50f7f7..38cdd405 100644 --- a/database/migrations/2026_07_17_154028_create_oauth_access_tokens_table.php +++ b/database/migrations/2026_07_17_154028_create_oauth_access_tokens_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('oauth_access_tokens', function (Blueprint $table) { $table->char('id', 80)->primary(); - $table->foreignId('user_id')->nullable()->index(); + $table->foreignUuid('user_id')->nullable()->index(); $table->foreignUuid('client_id'); $table->string('name')->nullable(); $table->text('scopes')->nullable(); diff --git a/database/migrations/2026_07_17_154030_create_oauth_clients_table.php b/database/migrations/2026_07_17_154030_create_oauth_clients_table.php index 9794dc86..e07d7910 100644 --- a/database/migrations/2026_07_17_154030_create_oauth_clients_table.php +++ b/database/migrations/2026_07_17_154030_create_oauth_clients_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('oauth_clients', function (Blueprint $table) { $table->uuid('id')->primary(); - $table->nullableMorphs('owner'); + $table->nullableUuidMorphs('owner'); $table->string('name'); $table->string('secret')->nullable(); $table->string('provider')->nullable(); diff --git a/database/migrations/2026_07_17_154031_create_oauth_device_codes_table.php b/database/migrations/2026_07_17_154031_create_oauth_device_codes_table.php index ea078319..236c4694 100644 --- a/database/migrations/2026_07_17_154031_create_oauth_device_codes_table.php +++ b/database/migrations/2026_07_17_154031_create_oauth_device_codes_table.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::create('oauth_device_codes', function (Blueprint $table) { $table->char('id', 80)->primary(); - $table->foreignId('user_id')->nullable()->index(); + $table->foreignUuid('user_id')->nullable()->index(); $table->foreignUuid('client_id')->index(); $table->char('user_code', 8)->unique(); $table->text('scopes');