Add additional settings; Use pilot id length from setting
This commit is contained in:
@@ -23,7 +23,7 @@ class CreateUsersTable extends Migration
|
||||
$table->integer('rank_id')->nullable()->unsigned();
|
||||
$table->string('home_airport_id', 5)->nullable();
|
||||
$table->string('curr_airport_id', 5)->nullable();
|
||||
$table->uuid('last_pirep_id')->nullable();
|
||||
$table->string('last_pirep_id')->nullable();
|
||||
$table->bigInteger('flights')->unsigned()->default(0);
|
||||
$table->bigInteger('flight_time')->unsigned()->default(0);
|
||||
$table->decimal('balance', 19, 2)->nullable();
|
||||
|
||||
@@ -60,7 +60,7 @@ class CreateSettingsTable extends Migration
|
||||
],
|
||||
[
|
||||
'order' => 20,
|
||||
'name' => 'Disable flights on bid',
|
||||
'name' => 'Disable flight on bid',
|
||||
'group' => 'bids',
|
||||
'key' => 'bids.disable_flight_on_bid',
|
||||
'value' => true,
|
||||
@@ -85,6 +85,15 @@ class CreateSettingsTable extends Migration
|
||||
'type' => 'boolean',
|
||||
'description' => 'Don\'t show inactive pilots in the public view',
|
||||
],
|
||||
[
|
||||
'order' => 31,
|
||||
'name' => 'Pilot ID Length',
|
||||
'group' => 'pilots',
|
||||
'key' => 'pilots.id_length',
|
||||
'value' => 4,
|
||||
'type' => 'int',
|
||||
'description' => 'The length of a pilot\'s ID',
|
||||
],
|
||||
];
|
||||
|
||||
$this->addData('settings', $settings);
|
||||
|
||||
Reference in New Issue
Block a user