mirror of
https://github.com/zeropingheroes/lancache-autofill
synced 2024-11-10 02:14:12 +00:00
Merge pull request #57 from jdmcmahan/fix-unique-constraint
Use bigInteger type for app ID columns to avoid overflow
This commit is contained in:
commit
f94fcf3ae6
1 changed files with 2 additions and 2 deletions
|
@ -44,13 +44,13 @@ class InitialiseDatabase extends Command
|
||||||
|
|
||||||
$this->info('Creating empty database tables');
|
$this->info('Creating empty database tables');
|
||||||
Capsule::schema()->create('steam_apps', function ($table) {
|
Capsule::schema()->create('steam_apps', function ($table) {
|
||||||
$table->integer('id')->unique();
|
$table->bigInteger('id')->unique();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
});
|
});
|
||||||
|
|
||||||
Capsule::schema()->create('steam_queue', function ($table) {
|
Capsule::schema()->create('steam_queue', function ($table) {
|
||||||
$table->increments('id')->unique();
|
$table->increments('id')->unique();
|
||||||
$table->integer('app_id');
|
$table->bigInteger('app_id');
|
||||||
$table->string('status');
|
$table->string('status');
|
||||||
$table->string('platform');
|
$table->string('platform');
|
||||||
$table->integer('popularity')->nullable()->default(1);
|
$table->integer('popularity')->nullable()->default(1);
|
||||||
|
|
Loading…
Reference in a new issue