From 24877898b2c9a28df7f46018e343783e71771a16 Mon Sep 17 00:00:00 2001 From: Donnie McMahan Date: Thu, 26 Aug 2021 14:43:48 -0500 Subject: [PATCH] Use bigInteger type for app ID columns to avoid overflow --- src/Commands/App/InitialiseDatabase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/App/InitialiseDatabase.php b/src/Commands/App/InitialiseDatabase.php index 8e46a18..7595422 100644 --- a/src/Commands/App/InitialiseDatabase.php +++ b/src/Commands/App/InitialiseDatabase.php @@ -44,13 +44,13 @@ class InitialiseDatabase extends Command $this->info('Creating empty database tables'); Capsule::schema()->create('steam_apps', function ($table) { - $table->integer('id')->unique(); + $table->bigInteger('id')->unique(); $table->string('name'); }); Capsule::schema()->create('steam_queue', function ($table) { $table->increments('id')->unique(); - $table->integer('app_id'); + $table->bigInteger('app_id'); $table->string('status'); $table->string('platform'); $table->integer('popularity')->nullable()->default(1);