From 695900a0086c5ea4b06daff3ba069fd3fe6c0a7f Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 12 Dec 2017 11:57:52 -0600 Subject: [PATCH] Update migrations and add more default settings --- ...2017_06_17_214650_create_flight_tables.php | 2 +- ...17_06_23_011011_create_subfleet_tables.php | 2 +- .../2017_06_28_195426_create_pirep_tables.php | 2 +- ...017_12_10_014930_create_settings_table.php | 22 +++++++++---------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/database/migrations/2017_06_17_214650_create_flight_tables.php b/database/migrations/2017_06_17_214650_create_flight_tables.php index 05f68932..7fd97f70 100644 --- a/database/migrations/2017_06_17_214650_create_flight_tables.php +++ b/database/migrations/2017_06_17_214650_create_flight_tables.php @@ -3,7 +3,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; -class CreateFlightsTable extends Migration +class CreateFlightTables extends Migration { /** diff --git a/database/migrations/2017_06_23_011011_create_subfleet_tables.php b/database/migrations/2017_06_23_011011_create_subfleet_tables.php index d924c47b..04198f96 100644 --- a/database/migrations/2017_06_23_011011_create_subfleet_tables.php +++ b/database/migrations/2017_06_23_011011_create_subfleet_tables.php @@ -3,7 +3,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; -class CreateSubfleetsTable extends Migration +class CreateSubfleetTables extends Migration { /** diff --git a/database/migrations/2017_06_28_195426_create_pirep_tables.php b/database/migrations/2017_06_28_195426_create_pirep_tables.php index a2fff669..36a714ca 100644 --- a/database/migrations/2017_06_28_195426_create_pirep_tables.php +++ b/database/migrations/2017_06_28_195426_create_pirep_tables.php @@ -3,7 +3,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; -class CreatePirepsTable extends Migration +class CreatePirepTables extends Migration { /** diff --git a/database/migrations/2017_12_10_014930_create_settings_table.php b/database/migrations/2017_12_10_014930_create_settings_table.php index c1e7b89e..0b424d15 100644 --- a/database/migrations/2017_12_10_014930_create_settings_table.php +++ b/database/migrations/2017_12_10_014930_create_settings_table.php @@ -54,34 +54,34 @@ class CreateSettingsTable extends Migration 'name' => 'Flights from Current', 'group' => 'flights', 'key' => 'flights.only_flights_from_current', - 'value' => 'true', + 'value' => true, 'type' => 'boolean', 'description' => 'Only allow flights from current location', ], [ - 'order' => 11, + 'order' => 20, 'name' => 'Disable flights on bid', - 'group' => 'flights', - 'key' => 'flights.disable_on_bid', - 'value' => 'true', + 'group' => 'bids', + 'key' => 'bids.disable_flight_on_bid', + 'value' => true, 'type' => 'boolean', 'description' => 'When a flight is bid on, should the flight be shown', ], [ - 'order' => 20, + 'order' => 21, 'name' => 'Allow multiple bids', - 'group' => 'pilots', - 'key' => 'pilots.allow_single_bid', - 'value' => 'true', + 'group' => 'bids', + 'key' => 'bids.allow_multiple_bids', + 'value' => true, 'type' => 'boolean', 'description' => 'Whether or not someone can bid on multiple flights', ], [ - 'order' => 21, + 'order' => 30, 'name' => 'Hide Inactive Pilots', 'group' => 'pilots', 'key' => 'pilots.hide_inactive', - 'value' => 'true', + 'value' => true, 'type' => 'boolean', 'description' => 'Don\'t show inactive pilots in the public view', ],