Fix: duplicate index on games.release_year, move IGDB config into services.php array

This commit is contained in:
Mark
2026-05-29 00:37:36 +03:00
parent 531e9d445a
commit 8e1fe4a2f5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -35,10 +35,10 @@ return [
], ],
], ],
];
'igdb' => [ 'igdb' => [
'client_id' => env('IGDB_CLIENT_ID'), 'client_id' => env('IGDB_CLIENT_ID'),
'client_secret' => env('IGDB_CLIENT_SECRET'), 'client_secret' => env('IGDB_CLIENT_SECRET'),
'base_url' => env('IGDB_BASE_URL', 'https://api.igdb.com/v4'), 'base_url' => env('IGDB_BASE_URL', 'https://api.igdb.com/v4'),
], ],
];
@@ -13,7 +13,7 @@ return new class extends Migration {
$table->string('cover_url')->nullable(); $table->string('cover_url')->nullable();
$table->string('cover_thumb_url')->nullable(); $table->string('cover_thumb_url')->nullable();
$table->date('release_date')->nullable(); $table->date('release_date')->nullable();
$table->string('release_year', 4)->nullable()->index(); $table->string('release_year', 4)->nullable();
$table->decimal('rating_avg', 4, 2)->nullable()->default(null); $table->decimal('rating_avg', 4, 2)->nullable()->default(null);
$table->unsignedInteger('rating_count')->default(0); $table->unsignedInteger('rating_count')->default(0);
$table->unsignedInteger('review_count')->default(0); $table->unsignedInteger('review_count')->default(0);