diff --git a/app/Contracts/Migration.php b/app/Contracts/Migration.php index 92caad8e..49dca50c 100644 --- a/app/Contracts/Migration.php +++ b/app/Contracts/Migration.php @@ -2,7 +2,6 @@ namespace App\Contracts; -use App\Models\Module; use App\Support\Database; use Exception; use Illuminate\Support\Facades\DB; diff --git a/app/Database/migrations/2017_06_08_0001_roles_permissions_tables.php b/app/Database/migrations/2017_06_08_0001_roles_permissions_tables.php index 14b5d16e..03d1a880 100644 --- a/app/Database/migrations/2017_06_08_0001_roles_permissions_tables.php +++ b/app/Database/migrations/2017_06_08_0001_roles_permissions_tables.php @@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint; class RolesPermissionsTables extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { // Create table for storing roles @@ -79,11 +74,6 @@ class RolesPermissionsTables extends Migration $this->addData('roles', $roles); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('permission_user'); diff --git a/app/Database/migrations/2017_06_08_0005_create_password_resets_table.php b/app/Database/migrations/2017_06_08_0005_create_password_resets_table.php index f2115ca2..a317db18 100755 --- a/app/Database/migrations/2017_06_08_0005_create_password_resets_table.php +++ b/app/Database/migrations/2017_06_08_0005_create_password_resets_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreatePasswordResetsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('password_resets', function (Blueprint $table) { @@ -20,11 +15,6 @@ class CreatePasswordResetsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('password_resets'); diff --git a/app/Database/migrations/2017_06_08_0006_create_sessions_table.php b/app/Database/migrations/2017_06_08_0006_create_sessions_table.php index 3c820faf..040ff443 100755 --- a/app/Database/migrations/2017_06_08_0006_create_sessions_table.php +++ b/app/Database/migrations/2017_06_08_0006_create_sessions_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateSessionsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('sessions', function (Blueprint $table) { @@ -23,11 +18,6 @@ class CreateSessionsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('sessions'); diff --git a/app/Database/migrations/2017_06_08_191703_create_airlines_table.php b/app/Database/migrations/2017_06_08_191703_create_airlines_table.php index e9535207..216b4c34 100644 --- a/app/Database/migrations/2017_06_08_191703_create_airlines_table.php +++ b/app/Database/migrations/2017_06_08_191703_create_airlines_table.php @@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint; class CreateAirlinesTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('airlines', function (Blueprint $table) { @@ -32,11 +27,6 @@ class CreateAirlinesTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('airlines'); diff --git a/app/Database/migrations/2017_06_10_040335_create_fares_table.php b/app/Database/migrations/2017_06_10_040335_create_fares_table.php index db0a6d0e..34e5f529 100644 --- a/app/Database/migrations/2017_06_10_040335_create_fares_table.php +++ b/app/Database/migrations/2017_06_10_040335_create_fares_table.php @@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint; class CreateFaresTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('fares', function (Blueprint $table) { @@ -25,11 +20,6 @@ class CreateFaresTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('fares'); diff --git a/app/Database/migrations/2017_06_17_214650_create_flight_tables.php b/app/Database/migrations/2017_06_17_214650_create_flight_tables.php index bde9c08d..3654d0c8 100644 --- a/app/Database/migrations/2017_06_17_214650_create_flight_tables.php +++ b/app/Database/migrations/2017_06_17_214650_create_flight_tables.php @@ -7,11 +7,6 @@ use Illuminate\Database\Schema\Blueprint; class CreateFlightTables extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('flights', function (Blueprint $table) { diff --git a/app/Database/migrations/2017_06_21_165410_create_ranks_table.php b/app/Database/migrations/2017_06_21_165410_create_ranks_table.php index ff668e9e..c766d55b 100644 --- a/app/Database/migrations/2017_06_21_165410_create_ranks_table.php +++ b/app/Database/migrations/2017_06_21_165410_create_ranks_table.php @@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint; class CreateRanksTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('ranks', function (Blueprint $table) { @@ -30,11 +25,6 @@ class CreateRanksTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('ranks'); diff --git a/app/Database/migrations/2017_06_23_011011_create_subfleet_tables.php b/app/Database/migrations/2017_06_23_011011_create_subfleet_tables.php index 5c733873..811b9c47 100644 --- a/app/Database/migrations/2017_06_23_011011_create_subfleet_tables.php +++ b/app/Database/migrations/2017_06_23_011011_create_subfleet_tables.php @@ -3,9 +3,6 @@ use App\Contracts\Migration; use Illuminate\Database\Schema\Blueprint; -/** - * Class CreateSubfleetTables - */ class CreateSubfleetTables extends Migration { public function up() @@ -48,11 +45,6 @@ class CreateSubfleetTables extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('subfleets'); diff --git a/app/Database/migrations/2017_12_12_174519_create_bids_table.php b/app/Database/migrations/2017_12_12_174519_create_bids_table.php index adc321de..191128a4 100644 --- a/app/Database/migrations/2017_12_12_174519_create_bids_table.php +++ b/app/Database/migrations/2017_12_12_174519_create_bids_table.php @@ -7,11 +7,6 @@ use Illuminate\Support\Facades\Schema; class CreateBidsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('bids', function (Blueprint $table) { @@ -25,11 +20,6 @@ class CreateBidsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('bids'); diff --git a/app/Database/migrations/2017_12_14_225241_create_jobs_table.php b/app/Database/migrations/2017_12_14_225241_create_jobs_table.php index 33bf17dc..df35caf6 100644 --- a/app/Database/migrations/2017_12_14_225241_create_jobs_table.php +++ b/app/Database/migrations/2017_12_14_225241_create_jobs_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateJobsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('jobs', function (Blueprint $table) { @@ -24,11 +19,6 @@ class CreateJobsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('jobs'); diff --git a/app/Database/migrations/2017_12_14_225337_create_failed_jobs_table.php b/app/Database/migrations/2017_12_14_225337_create_failed_jobs_table.php index 094bcf23..f0100b68 100644 --- a/app/Database/migrations/2017_12_14_225337_create_failed_jobs_table.php +++ b/app/Database/migrations/2017_12_14_225337_create_failed_jobs_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateFailedJobsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('failed_jobs', function (Blueprint $table) { @@ -23,11 +18,6 @@ class CreateFailedJobsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('failed_jobs'); diff --git a/app/Database/migrations/2017_12_20_004147_create_navdata_tables.php b/app/Database/migrations/2017_12_20_004147_create_navdata_tables.php index b746c76d..8456f826 100644 --- a/app/Database/migrations/2017_12_20_004147_create_navdata_tables.php +++ b/app/Database/migrations/2017_12_20_004147_create_navdata_tables.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateNavdataTables extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { /* @@ -31,11 +26,6 @@ class CreateNavdataTables extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('navdata'); diff --git a/app/Database/migrations/2017_12_20_005147_create_acars_tables.php b/app/Database/migrations/2017_12_20_005147_create_acars_tables.php index 2222e425..c6ce7c36 100644 --- a/app/Database/migrations/2017_12_20_005147_create_acars_tables.php +++ b/app/Database/migrations/2017_12_20_005147_create_acars_tables.php @@ -7,11 +7,6 @@ use Illuminate\Support\Facades\Schema; class CreateAcarsTables extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('acars', function (Blueprint $table) { @@ -44,11 +39,6 @@ class CreateAcarsTables extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('acars'); diff --git a/app/Database/migrations/2018_01_03_014930_create_stats_table.php b/app/Database/migrations/2018_01_03_014930_create_stats_table.php index 3656caac..d736857a 100644 --- a/app/Database/migrations/2018_01_03_014930_create_stats_table.php +++ b/app/Database/migrations/2018_01_03_014930_create_stats_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateStatsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('stats', function (Blueprint $table) { @@ -25,11 +20,6 @@ class CreateStatsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('stats'); diff --git a/app/Database/migrations/2018_01_08_142204_create_news_table.php b/app/Database/migrations/2018_01_08_142204_create_news_table.php index 8069a2fa..21c4ea46 100644 --- a/app/Database/migrations/2018_01_08_142204_create_news_table.php +++ b/app/Database/migrations/2018_01_08_142204_create_news_table.php @@ -17,11 +17,6 @@ class CreateNewsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::drop('news'); diff --git a/app/Database/migrations/2018_01_28_180522_create_awards_table.php b/app/Database/migrations/2018_01_28_180522_create_awards_table.php index 7a00e26b..717addb5 100644 --- a/app/Database/migrations/2018_01_28_180522_create_awards_table.php +++ b/app/Database/migrations/2018_01_28_180522_create_awards_table.php @@ -7,13 +7,6 @@ use Modules\Awards\Awards\PilotFlightAwards; class CreateAwardsTable extends Migration { - /** - * Run the migrations. - * - * @throws \Illuminate\Validation\ValidationException - * - * @return void - */ public function up() { Schema::create('awards', function (Blueprint $table) { @@ -54,11 +47,6 @@ class CreateAwardsTable extends Migration $this->addAward($award); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('awards'); diff --git a/app/Database/migrations/2018_02_28_231807_create_journal_transactions_table.php b/app/Database/migrations/2018_02_28_231807_create_journal_transactions_table.php index 87fa8650..6f40e653 100644 --- a/app/Database/migrations/2018_02_28_231807_create_journal_transactions_table.php +++ b/app/Database/migrations/2018_02_28_231807_create_journal_transactions_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateJournalTransactionsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('journal_transactions', function (Blueprint $table) { @@ -34,11 +29,6 @@ class CreateJournalTransactionsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('journal_transactions'); diff --git a/app/Database/migrations/2018_02_28_231813_create_journals_table.php b/app/Database/migrations/2018_02_28_231813_create_journals_table.php index f39f236a..b09c1b9a 100644 --- a/app/Database/migrations/2018_02_28_231813_create_journals_table.php +++ b/app/Database/migrations/2018_02_28_231813_create_journals_table.php @@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema; class CreateJournalsTable extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::create('journals', function (Blueprint $table) { @@ -24,11 +19,6 @@ class CreateJournalsTable extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('journals'); diff --git a/app/Database/migrations/2018_04_01_193443_create_files_table.php b/app/Database/migrations/2018_04_01_193443_create_files_table.php index 29a8aa0a..d77f0e1c 100644 --- a/app/Database/migrations/2018_04_01_193443_create_files_table.php +++ b/app/Database/migrations/2018_04_01_193443_create_files_table.php @@ -1,6 +1,7 @@ string('id', \App\Contracts\Model::ID_MAX_LENGTH); + $table->string('id', Model::ID_MAX_LENGTH); $table->string('name'); $table->string('description')->nullable(); $table->string('disk')->nullable(); diff --git a/app/Database/migrations/2019_06_19_220910_add_readonly_to_roles.php b/app/Database/migrations/2019_06_19_220910_add_readonly_to_roles.php index 65ecce47..491547cd 100644 --- a/app/Database/migrations/2019_06_19_220910_add_readonly_to_roles.php +++ b/app/Database/migrations/2019_06_19_220910_add_readonly_to_roles.php @@ -1,17 +1,12 @@ update(['read_only' => true]); } - /** - * Reverse the migrations. - * - * @return void - */ public function down(): void { Schema::table('roles', static function (Blueprint $table) { diff --git a/app/Database/migrations/2019_07_16_141152_users_add_pilot_id.php b/app/Database/migrations/2019_07_16_141152_users_add_pilot_id.php index 5e743df1..cd1b411d 100644 --- a/app/Database/migrations/2019_07_16_141152_users_add_pilot_id.php +++ b/app/Database/migrations/2019_07_16_141152_users_add_pilot_id.php @@ -1,21 +1,19 @@ update(['pilot_id' => DB::raw('`id`')]); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::table('users', function (Blueprint $table) { diff --git a/app/Database/migrations/2019_08_30_132224_create_notifications_table.php b/app/Database/migrations/2019_08_30_132224_create_notifications_table.php index 9797596d..79a4055d 100644 --- a/app/Database/migrations/2019_08_30_132224_create_notifications_table.php +++ b/app/Database/migrations/2019_08_30_132224_create_notifications_table.php @@ -1,16 +1,11 @@ unsignedSmallInteger('state')->change(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } } diff --git a/app/Database/migrations/2019_10_30_141152_pireps_add_flight_id.php b/app/Database/migrations/2019_10_30_141152_pireps_add_flight_id.php index ca8be667..102f02f9 100644 --- a/app/Database/migrations/2019_10_30_141152_pireps_add_flight_id.php +++ b/app/Database/migrations/2019_10_30_141152_pireps_add_flight_id.php @@ -5,27 +5,15 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; +/** + * Add a `flight_id` column to the PIREPs table + */ class PirepsAddFlightId extends Migration { - /** - * Add a `flight_id` column to the PIREPs table - */ public function up() { Schema::table('pireps', function (Blueprint $table) { $table->string('flight_id', Model::ID_MAX_LENGTH)->nullable()->after('aircraft_id'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('pireps', function (Blueprint $table) { - $table->dropColumn('flight_id'); - }); - } } diff --git a/app/Database/migrations/2020_02_12_141152_expenses_add_flight_type.php b/app/Database/migrations/2020_02_12_141152_expenses_add_flight_type.php index b3a3e98b..97075d8e 100644 --- a/app/Database/migrations/2020_02_12_141152_expenses_add_flight_type.php +++ b/app/Database/migrations/2020_02_12_141152_expenses_add_flight_type.php @@ -4,11 +4,11 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; +/** + * Add a `flight_type` column to the expenses table + */ class ExpensesAddFlightType extends Migration { - /** - * Add a `flight_type` column to the expenses table - */ public function up() { Schema::table('expenses', function (Blueprint $table) { @@ -18,11 +18,6 @@ class ExpensesAddFlightType extends Migration }); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::table('expenses', function (Blueprint $table) { diff --git a/app/Database/migrations/2020_02_26_044305_modify_airports_coordinates.php b/app/Database/migrations/2020_02_26_044305_modify_airports_coordinates.php index 4803b41c..5a817db7 100644 --- a/app/Database/migrations/2020_02_26_044305_modify_airports_coordinates.php +++ b/app/Database/migrations/2020_02_26_044305_modify_airports_coordinates.php @@ -1,6 +1,6 @@ decimal('lon', 11, 5)->change()->default(0.0)->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } } diff --git a/app/Database/migrations/2020_03_04_044305_flight_field_nullable.php b/app/Database/migrations/2020_03_04_044305_flight_field_nullable.php index 96ecaafa..135c3c50 100644 --- a/app/Database/migrations/2020_03_04_044305_flight_field_nullable.php +++ b/app/Database/migrations/2020_03_04_044305_flight_field_nullable.php @@ -1,6 +1,6 @@ text('value')->change()->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } } diff --git a/app/Database/migrations/2020_03_05_141152_flights_add_load_factor.php b/app/Database/migrations/2020_03_05_141152_flights_add_load_factor.php index 67ea5240..32dc426d 100644 --- a/app/Database/migrations/2020_03_05_141152_flights_add_load_factor.php +++ b/app/Database/migrations/2020_03_05_141152_flights_add_load_factor.php @@ -1,14 +1,14 @@ after('capacity'); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::table('fares', function (Blueprint $table) { - $table->dropColumn('type'); - }); - } } diff --git a/app/Database/migrations/2020_03_09_141152_increase_id_lengths.php b/app/Database/migrations/2020_03_09_141152_increase_id_lengths.php index 32477b55..85d16412 100644 --- a/app/Database/migrations/2020_03_09_141152_increase_id_lengths.php +++ b/app/Database/migrations/2020_03_09_141152_increase_id_lengths.php @@ -1,6 +1,6 @@ dropUnique(['type']); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } } diff --git a/app/Database/migrations/2020_03_11_141153_add_simbrief_table.php b/app/Database/migrations/2020_03_11_141153_add_simbrief_table.php index 01a23147..1564ebd2 100644 --- a/app/Database/migrations/2020_03_11_141153_add_simbrief_table.php +++ b/app/Database/migrations/2020_03_11_141153_add_simbrief_table.php @@ -1,6 +1,6 @@ dropUnique(['iata']); }); } - - public function down() - { - } } diff --git a/app/Database/migrations/2020_03_28_174238_page_icon_nullable.php b/app/Database/migrations/2020_03_28_174238_page_icon_nullable.php index a8dd355e..9d849946 100644 --- a/app/Database/migrations/2020_03_28_174238_page_icon_nullable.php +++ b/app/Database/migrations/2020_03_28_174238_page_icon_nullable.php @@ -1,6 +1,6 @@ string('icon')->change()->nullable(); }); } - - public function down() - { - } } diff --git a/app/Database/migrations/2020_06_09_141153_pages_add_link.php b/app/Database/migrations/2020_06_09_141153_pages_add_link.php index 412f2663..a73841fd 100644 --- a/app/Database/migrations/2020_06_09_141153_pages_add_link.php +++ b/app/Database/migrations/2020_06_09_141153_pages_add_link.php @@ -1,15 +1,15 @@ index(['user_field_id', 'user_id']); }); } - - /** - * @return void - */ - public function down() - { - } } diff --git a/app/Database/migrations/2020_09_03_141152_aircraft_add_mtow.php b/app/Database/migrations/2020_09_03_141152_aircraft_add_mtow.php index b5bb3714..cde9694f 100644 --- a/app/Database/migrations/2020_09_03_141152_aircraft_add_mtow.php +++ b/app/Database/migrations/2020_09_03_141152_aircraft_add_mtow.php @@ -1,6 +1,6 @@ addModule(['name' => 'TestModule']); } - /** - * Reverse the migrations. - * - * @return void - */ public function down() { Schema::dropIfExists('modules'); diff --git a/app/Database/migrations/2020_11_20_044305_modify_pages_size.php b/app/Database/migrations/2020_11_20_044305_modify_pages_size.php index 41b9f028..e7d13e5b 100644 --- a/app/Database/migrations/2020_11_20_044305_modify_pages_size.php +++ b/app/Database/migrations/2020_11_20_044305_modify_pages_size.php @@ -9,24 +9,10 @@ use Illuminate\Support\Facades\Schema; */ class ModifyPagesSize extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { Schema::table('pages', function (Blueprint $table) { $table->mediumText('body')->change()->nullable(); }); } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - } } diff --git a/app/Database/migrations/2020_11_26_044305_modify_download_link_size.php b/app/Database/migrations/2020_11_26_044305_modify_download_link_size.php new file mode 100644 index 00000000..5d00dc13 --- /dev/null +++ b/app/Database/migrations/2020_11_26_044305_modify_download_link_size.php @@ -0,0 +1,19 @@ +mediumText('disk')->change()->nullable(); + $table->mediumText('path')->change()->nullable(); + }); + } +}