phpvms/app/Database/migrations
B.Fatih KOZ 17447c6903
Block aircraft with Simbrief (#1213)
* Block Aircraft with SimBrief

Changes aim to have the ability to block an aircraft's usage if it is used to generate a SimBrief OFP.

Unused/Expired briefings will be deleted by cron like before but will now be checked by HourlyCron, so admins can define more precise restrictions for them (and the blockage period of their aircraft)

Owner of the SimBrief OFP will be able to start a flight with acars using that particular aircraft, but pilots will get an Aircraft Not Available error (similar to Aircraft State check)

To prevent SimBrief OFP packs being marked as expired/unused, during pirep prefile, pirep_id will be saved to SimBrief model along with flight_id.

And when a flight is finished (pirep file), flight_id will be removed from SimBrief model as before. Only pirep_id will remain and aircraft will be available for another OFP generation.

* Update PirepController

In case a pirep is being saved/submitted with manual entry (but the va is using simbrief effectively) same logic should be applied during save/submit button selection.
Save will act like a pirep prefile , Submit will be pirep file.

* Manual Pirep Checks

Manual pireps, prefiled from a generated simbrief should be checked too. Also pirep.show blade's submit button should provide the same simbrief checks.

* Update PirepService.php

* Change settings and move sb cron to hourly

* StyleFix (SimBriefService)

* Another StyleFix (SimBriefService)

* Update SimBriefController

Removed null check of pirep_id for aircraft list generation to prevent live flights' aircraft being listed for another ofp generation.
( Active acars flights will have both flight_id and pirep_id at simbrief table)

* Update PirepService.php

Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
2021-06-03 16:17:16 -04:00
..
.gitkeep Reorganized folders to try to clean up the root folder a bit 2017-12-14 10:38:10 -06:00
2017_06_07_014930_create_settings_table.php Issue/329 refactor seeding (#337) 2019-08-05 08:27:53 -04:00
2017_06_08_0000_create_users_table.php Increase ID column size; seed ID generator with uniqid() #630 (#631) 2020-03-09 13:16:10 -04:00
2017_06_08_0001_roles_permissions_tables.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_08_0005_create_password_resets_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_08_0006_create_sessions_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_08_191703_create_airlines_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_09_010621_create_aircrafts_table.php Rename Interfaces to Contracts to better match Laravel conventions 2019-07-15 15:44:31 -04:00
2017_06_10_040335_create_fares_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_11_135707_create_airports_table.php Rename Interfaces to Contracts to better match Laravel conventions 2019-07-15 15:44:31 -04:00
2017_06_17_214650_create_flight_tables.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_21_165410_create_ranks_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_23_011011_create_subfleet_tables.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_06_28_195426_create_pirep_tables.php #406 Refactor bids (#432) 2019-11-05 11:44:31 -05:00
2017_12_12_174519_create_bids_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_12_14_225241_create_jobs_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_12_14_225337_create_failed_jobs_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_12_20_004147_create_navdata_tables.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2017_12_20_005147_create_acars_tables.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2018_01_03_014930_create_stats_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2018_01_08_142204_create_news_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2018_01_28_180522_create_awards_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2018_02_26_185121_create_expenses_table.php Rename Interfaces to Contracts to better match Laravel conventions 2019-07-15 15:44:31 -04:00
2018_02_28_231807_create_journal_transactions_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2018_02_28_231813_create_journals_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2018_02_28_232438_create_ledgers_table.php Rename Interfaces to Contracts to better match Laravel conventions 2019-07-15 15:44:31 -04:00
2018_04_01_193443_create_files_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2019_06_19_220910_add_readonly_to_roles.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2019_07_16_141152_users_add_pilot_id.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2019_08_30_132224_create_notifications_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2019_09_16_141152_pireps_change_state_type.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2019_10_30_141152_pireps_add_flight_id.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_02_12_141152_expenses_add_flight_type.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_02_26_044305_modify_airports_coordinates.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_04_044305_flight_field_nullable.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_05_141152_flights_add_load_factor.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_06_141152_flights_add_pilot_pay.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_06_141153_fares_add_type.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_09_141152_increase_id_lengths.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_09_141153_remove_subfleet_type_index.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_11_141153_add_simbrief_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_27_174238_create_pages.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_28_174238_airline_remove_nullable.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_03_28_174238_page_icon_nullable.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_06_09_141153_pages_add_link.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_07_21_141153_create_user_fields.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_09_03_141152_aircraft_add_mtow.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_09_30_081536_create_modules_table.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_11_20_044305_modify_pages_size.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2020_11_26_044305_modify_download_link_size.php Download path size too small; fix migrations #935 (#940) 2020-11-26 13:03:59 -05:00
2021_01_17_044305_add_hub_to_subfleets.php Subfleet Hubs / Base Airports (#978) 2021-01-17 12:43:06 -05:00
2021_02_10_044305_change_acars_vs_type.php ACARS table vs int to double (#1028) 2021-02-10 13:39:40 -05:00
2021_02_11_044305_update_sessions_table.php Undo primary idx change 2021-02-11 08:57:43 -05:00
2021_02_23_150601_aircraft_add_fuelonboard.php Advanced Fuel Calculations (#1044) 2021-02-24 12:22:52 -05:00
2021_02_23_205630_add_sbtype_to_subfleets.php SimBrief integration enhancements (#1045) 2021-02-24 09:32:29 -05:00
2021_03_01_044305_add_aircraft_to_simbrief.php Refactoring Simbrief fares and aircraft (#1054) 2021-03-02 12:29:04 -05:00
2021_03_05_044305_add_kvp_table.php Add web cron ability #821 (#1073) 2021-03-09 11:36:56 -05:00
2021_03_18_161419_add_disableactivitychecks_to_roles.php Add disable activity check option on certain roles #1078 (#1087) 2021-03-19 13:09:29 -04:00
2021_03_25_213017_remove_setting_removebidonaccept.php Remove remove_bid_after_accept setting (#1100) 2021-03-27 08:33:21 -04:00
2021_04_05_055245_flights_add_alphanumeric_callsign.php Alphanumeric Callsign For Flights (#1124) 2021-04-05 18:00:50 -04:00
2021_04_10_055245_migrate_configs.php Migrate all configs into the env.php file #1075 (#1128) 2021-04-10 17:19:45 -04:00
2021_05_21_141152_increase_icao_sizes.php 5 char ICAO support #1052 (#1198) 2021-05-21 10:52:47 -04:00
2021_05_28_165608_remove_setting_simbriefexpiredays.php Block aircraft with Simbrief (#1213) 2021-06-03 16:17:16 -04:00