Fix: duplicate index on games.release_year, move IGDB config into services.php array
This commit is contained in:
+2
-2
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user