Download path size too small; fix migrations #935 (#940)

This commit is contained in:
Nabeel S
2020-11-26 13:03:59 -05:00
committed by GitHub
parent eae345efa7
commit 8f4219bc95
43 changed files with 70 additions and 396 deletions
-1
View File
@@ -2,7 +2,6 @@
namespace App\Contracts; namespace App\Contracts;
use App\Models\Module;
use App\Support\Database; use App\Support\Database;
use Exception; use Exception;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
@@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint;
class RolesPermissionsTables extends Migration class RolesPermissionsTables extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
// Create table for storing roles // Create table for storing roles
@@ -79,11 +74,6 @@ class RolesPermissionsTables extends Migration
$this->addData('roles', $roles); $this->addData('roles', $roles);
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('permission_user'); Schema::dropIfExists('permission_user');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreatePasswordResetsTable extends Migration class CreatePasswordResetsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('password_resets', function (Blueprint $table) { Schema::create('password_resets', function (Blueprint $table) {
@@ -20,11 +15,6 @@ class CreatePasswordResetsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('password_resets'); Schema::dropIfExists('password_resets');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateSessionsTable extends Migration class CreateSessionsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('sessions', function (Blueprint $table) { Schema::create('sessions', function (Blueprint $table) {
@@ -23,11 +18,6 @@ class CreateSessionsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('sessions'); Schema::dropIfExists('sessions');
@@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint;
class CreateAirlinesTable extends Migration class CreateAirlinesTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('airlines', function (Blueprint $table) { Schema::create('airlines', function (Blueprint $table) {
@@ -32,11 +27,6 @@ class CreateAirlinesTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('airlines'); Schema::dropIfExists('airlines');
@@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint;
class CreateFaresTable extends Migration class CreateFaresTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('fares', function (Blueprint $table) { Schema::create('fares', function (Blueprint $table) {
@@ -25,11 +20,6 @@ class CreateFaresTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('fares'); Schema::dropIfExists('fares');
@@ -7,11 +7,6 @@ use Illuminate\Database\Schema\Blueprint;
class CreateFlightTables extends Migration class CreateFlightTables extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('flights', function (Blueprint $table) { Schema::create('flights', function (Blueprint $table) {
@@ -5,11 +5,6 @@ use Illuminate\Database\Schema\Blueprint;
class CreateRanksTable extends Migration class CreateRanksTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('ranks', function (Blueprint $table) { Schema::create('ranks', function (Blueprint $table) {
@@ -30,11 +25,6 @@ class CreateRanksTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('ranks'); Schema::dropIfExists('ranks');
@@ -3,9 +3,6 @@
use App\Contracts\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
/**
* Class CreateSubfleetTables
*/
class CreateSubfleetTables extends Migration class CreateSubfleetTables extends Migration
{ {
public function up() public function up()
@@ -48,11 +45,6 @@ class CreateSubfleetTables extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('subfleets'); Schema::dropIfExists('subfleets');
@@ -7,11 +7,6 @@ use Illuminate\Support\Facades\Schema;
class CreateBidsTable extends Migration class CreateBidsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('bids', function (Blueprint $table) { Schema::create('bids', function (Blueprint $table) {
@@ -25,11 +20,6 @@ class CreateBidsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('bids'); Schema::dropIfExists('bids');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateJobsTable extends Migration class CreateJobsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('jobs', function (Blueprint $table) { Schema::create('jobs', function (Blueprint $table) {
@@ -24,11 +19,6 @@ class CreateJobsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('jobs'); Schema::dropIfExists('jobs');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateFailedJobsTable extends Migration class CreateFailedJobsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('failed_jobs', function (Blueprint $table) { Schema::create('failed_jobs', function (Blueprint $table) {
@@ -23,11 +18,6 @@ class CreateFailedJobsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('failed_jobs'); Schema::dropIfExists('failed_jobs');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateNavdataTables extends Migration class CreateNavdataTables extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
/* /*
@@ -31,11 +26,6 @@ class CreateNavdataTables extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('navdata'); Schema::dropIfExists('navdata');
@@ -7,11 +7,6 @@ use Illuminate\Support\Facades\Schema;
class CreateAcarsTables extends Migration class CreateAcarsTables extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('acars', function (Blueprint $table) { Schema::create('acars', function (Blueprint $table) {
@@ -44,11 +39,6 @@ class CreateAcarsTables extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('acars'); Schema::dropIfExists('acars');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateStatsTable extends Migration class CreateStatsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('stats', function (Blueprint $table) { Schema::create('stats', function (Blueprint $table) {
@@ -25,11 +20,6 @@ class CreateStatsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('stats'); Schema::dropIfExists('stats');
@@ -17,11 +17,6 @@ class CreateNewsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::drop('news'); Schema::drop('news');
@@ -7,13 +7,6 @@ use Modules\Awards\Awards\PilotFlightAwards;
class CreateAwardsTable extends Migration class CreateAwardsTable extends Migration
{ {
/**
* Run the migrations.
*
* @throws \Illuminate\Validation\ValidationException
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('awards', function (Blueprint $table) { Schema::create('awards', function (Blueprint $table) {
@@ -54,11 +47,6 @@ class CreateAwardsTable extends Migration
$this->addAward($award); $this->addAward($award);
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('awards'); Schema::dropIfExists('awards');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateJournalTransactionsTable extends Migration class CreateJournalTransactionsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('journal_transactions', function (Blueprint $table) { Schema::create('journal_transactions', function (Blueprint $table) {
@@ -34,11 +29,6 @@ class CreateJournalTransactionsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('journal_transactions'); Schema::dropIfExists('journal_transactions');
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateJournalsTable extends Migration class CreateJournalsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('journals', function (Blueprint $table) { Schema::create('journals', function (Blueprint $table) {
@@ -24,11 +19,6 @@ class CreateJournalsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('journals'); Schema::dropIfExists('journals');
@@ -1,6 +1,7 @@
<?php <?php
use App\Contracts\Migration; use App\Contracts\Migration;
use App\Contracts\Model;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -14,7 +15,7 @@ class CreateFilesTable extends Migration
public function up() public function up()
{ {
Schema::create('files', function (Blueprint $table) { Schema::create('files', function (Blueprint $table) {
$table->string('id', \App\Contracts\Model::ID_MAX_LENGTH); $table->string('id', Model::ID_MAX_LENGTH);
$table->string('name'); $table->string('name');
$table->string('description')->nullable(); $table->string('description')->nullable();
$table->string('disk')->nullable(); $table->string('disk')->nullable();
@@ -1,17 +1,12 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class AddReadonlyToRoles extends Migration class AddReadonlyToRoles extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up(): void public function up(): void
{ {
Schema::table('roles', static function (Blueprint $table) { Schema::table('roles', static function (Blueprint $table) {
@@ -24,11 +19,6 @@ class AddReadonlyToRoles extends Migration
->update(['read_only' => true]); ->update(['read_only' => true]);
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void public function down(): void
{ {
Schema::table('roles', static function (Blueprint $table) { Schema::table('roles', static function (Blueprint $table) {
@@ -1,21 +1,19 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Kinda of gross operations to change the pilot ID column
* 1. Add an `pilot_id` column, which will get populated with the current ID
* 2. Drop the `id` column, and then recreate it as a string field
* 3. Iterate through all of the users and set their `id` to the `pilot_id`
* 4. Change the other tables column types that reference `user_id`
*/
class UsersAddPilotId extends Migration class UsersAddPilotId extends Migration
{ {
/**
* Kinda of gross operations to change the pilot ID column
* 1. Add an `pilot_id` column, which will get populated with the current ID
* 2. Drop the `id` column, and then recreate it as a string field
* 3. Iterate through all of the users and set their `id` to the `pilot_id`
* 4. Change the other tables column types that reference `user_id`
*
* @return void
*/
public function up() public function up()
{ {
Schema::table('users', static function (Blueprint $table) { Schema::table('users', static function (Blueprint $table) {
@@ -29,11 +27,6 @@ class UsersAddPilotId extends Migration
DB::table('users')->update(['pilot_id' => DB::raw('`id`')]); DB::table('users')->update(['pilot_id' => DB::raw('`id`')]);
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::table('users', function (Blueprint $table) { Schema::table('users', function (Blueprint $table) {
@@ -1,16 +1,11 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateNotificationsTable extends Migration class CreateNotificationsTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('notifications', function (Blueprint $table) { Schema::create('notifications', function (Blueprint $table) {
@@ -23,11 +18,6 @@ class CreateNotificationsTable extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('notifications'); Schema::dropIfExists('notifications');
@@ -1,18 +1,16 @@
<?php <?php
use App\Contracts\Migration;
use App\Models\Enums\PirepState; use App\Models\Enums\PirepState;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Change the PIREP state column to be a TINYINT
*/
class PirepsChangeStateType extends Migration class PirepsChangeStateType extends Migration
{ {
/**
* Change the PIREP state column to be a TINYINT
*
* @return void
*/
public function up() public function up()
{ {
// Migrate the old rejected state // Migrate the old rejected state
@@ -25,13 +23,4 @@ class PirepsChangeStateType extends Migration
$table->unsignedSmallInteger('state')->change(); $table->unsignedSmallInteger('state')->change();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
} }
@@ -5,27 +5,15 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add a `flight_id` column to the PIREPs table
*/
class PirepsAddFlightId extends Migration class PirepsAddFlightId extends Migration
{ {
/**
* Add a `flight_id` column to the PIREPs table
*/
public function up() public function up()
{ {
Schema::table('pireps', function (Blueprint $table) { Schema::table('pireps', function (Blueprint $table) {
$table->string('flight_id', Model::ID_MAX_LENGTH)->nullable()->after('aircraft_id'); $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');
});
}
} }
@@ -4,11 +4,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add a `flight_type` column to the expenses table
*/
class ExpensesAddFlightType extends Migration class ExpensesAddFlightType extends Migration
{ {
/**
* Add a `flight_type` column to the expenses table
*/
public function up() public function up()
{ {
Schema::table('expenses', function (Blueprint $table) { Schema::table('expenses', function (Blueprint $table) {
@@ -18,11 +18,6 @@ class ExpensesAddFlightType extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::table('expenses', function (Blueprint $table) { Schema::table('expenses', function (Blueprint $table) {
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/** /**
@@ -25,13 +25,4 @@ class ModifyAirportsCoordinates extends Migration
$table->decimal('lon', 11, 5)->change()->default(0.0)->nullable(); $table->decimal('lon', 11, 5)->change()->default(0.0)->nullable();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
} }
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/** /**
@@ -8,24 +8,10 @@ use Illuminate\Support\Facades\Schema;
*/ */
class FlightFieldNullable extends Migration class FlightFieldNullable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::table('flight_field_values', function ($table) { Schema::table('flight_field_values', function ($table) {
$table->text('value')->change()->nullable(); $table->text('value')->change()->nullable();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
} }
@@ -1,14 +1,14 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add a `load_factor` and `load_factor_variance` columns to the expenses table
*/
class FlightsAddLoadFactor extends Migration class FlightsAddLoadFactor extends Migration
{ {
/**
* Add a `load_factor` and `load_factor_variance` columns to the expenses table
*/
public function up() public function up()
{ {
Schema::table('flights', function (Blueprint $table) { Schema::table('flights', function (Blueprint $table) {
@@ -22,11 +22,6 @@ class FlightsAddLoadFactor extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::table('flights', function (Blueprint $table) { Schema::table('flights', function (Blueprint $table) {
@@ -1,14 +1,14 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add a `pilot_pay` column for a fixed amount to pay to a pilot for a flight
*/
class FlightsAddPilotPay extends Migration class FlightsAddPilotPay extends Migration
{ {
/**
* Add a `pilot_pay` column for a fixed amount to pay to a pilot for a flight
*/
public function up() public function up()
{ {
Schema::table('flights', function (Blueprint $table) { Schema::table('flights', function (Blueprint $table) {
@@ -18,11 +18,6 @@ class FlightsAddPilotPay extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::table('flights', function (Blueprint $table) { Schema::table('flights', function (Blueprint $table) {
@@ -1,15 +1,15 @@
<?php <?php
use App\Contracts\Migration;
use App\Models\Enums\FareType; use App\Models\Enums\FareType;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add a `pilot_pay` column for a fixed amount to pay to a pilot for a flight
*/
class FaresAddType extends Migration class FaresAddType extends Migration
{ {
/**
* Add a `pilot_pay` column for a fixed amount to pay to a pilot for a flight
*/
public function up() public function up()
{ {
Schema::table('fares', function (Blueprint $table) { Schema::table('fares', function (Blueprint $table) {
@@ -19,16 +19,4 @@ class FaresAddType extends Migration
->after('capacity'); ->after('capacity');
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('fares', function (Blueprint $table) {
$table->dropColumn('type');
});
}
} }
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -33,13 +33,4 @@ class IncreaseIdLengths extends Migration
}); });
} }
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
} }
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -15,13 +15,4 @@ class RemoveSubfleetTypeIndex extends Migration
$table->dropUnique(['type']); $table->dropUnique(['type']);
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
} }
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -1,7 +1,7 @@
<?php <?php
use App\Contracts\Migration;
use App\Models\Enums\PageType; use App\Models\Enums\PageType;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -11,11 +11,6 @@ use Illuminate\Support\Facades\Schema;
*/ */
class CreatePages extends Migration class CreatePages extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('pages', function (Blueprint $table) { Schema::create('pages', function (Blueprint $table) {
@@ -33,11 +28,6 @@ class CreatePages extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('pages'); Schema::dropIfExists('pages');
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -12,8 +12,4 @@ class AirlineRemoveNullable extends Migration
$table->dropUnique(['iata']); $table->dropUnique(['iata']);
}); });
} }
public function down()
{
}
} }
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -12,8 +12,4 @@ class PageIconNullable extends Migration
$table->string('icon')->change()->nullable(); $table->string('icon')->change()->nullable();
}); });
} }
public function down()
{
}
} }
@@ -1,15 +1,15 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add a `link` column and make the body optional. Also add a "new_window" bool
* which determines if we open this link in a new window or not
*/
class PagesAddLink extends Migration class PagesAddLink extends Migration
{ {
/**
* Add a `link` column and make the body optional. Also add a "new_window" bool
* which determines if we open this link in a new window or not
*/
public function up() public function up()
{ {
Schema::table('pages', function (Blueprint $table) { Schema::table('pages', function (Blueprint $table) {
@@ -23,9 +23,6 @@ class PagesAddLink extends Migration
}); });
} }
/**
* @return void
*/
public function down() public function down()
{ {
Schema::table('fares', function (Blueprint $table) { Schema::table('fares', function (Blueprint $table) {
@@ -5,11 +5,11 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
/**
* Add two tables for holding user fields and the values
*/
class CreateUserFields extends Migration class CreateUserFields extends Migration
{ {
/**
* Add two tables for holding user fields and the values
*/
public function up() public function up()
{ {
/* /*
@@ -39,11 +39,4 @@ class CreateUserFields extends Migration
$table->index(['user_field_id', 'user_id']); $table->index(['user_field_id', 'user_id']);
}); });
} }
/**
* @return void
*/
public function down()
{
}
} }
@@ -1,6 +1,6 @@
<?php <?php
use Illuminate\Database\Migrations\Migration; use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
@@ -19,11 +19,6 @@ class AircraftAddMtow extends Migration
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::table('aircraft', function (Blueprint $table) { Schema::table('aircraft', function (Blueprint $table) {
@@ -6,11 +6,6 @@ use Illuminate\Support\Facades\Schema;
class CreateModulesTable extends Migration class CreateModulesTable extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::create('modules', function (Blueprint $table) { Schema::create('modules', function (Blueprint $table) {
@@ -27,11 +22,6 @@ class CreateModulesTable extends Migration
$this->addModule(['name' => 'TestModule']); $this->addModule(['name' => 'TestModule']);
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down() public function down()
{ {
Schema::dropIfExists('modules'); Schema::dropIfExists('modules');
@@ -9,24 +9,10 @@ use Illuminate\Support\Facades\Schema;
*/ */
class ModifyPagesSize extends Migration class ModifyPagesSize extends Migration
{ {
/**
* Run the migrations.
*
* @return void
*/
public function up() public function up()
{ {
Schema::table('pages', function (Blueprint $table) { Schema::table('pages', function (Blueprint $table) {
$table->mediumText('body')->change()->nullable(); $table->mediumText('body')->change()->nullable();
}); });
} }
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
} }
@@ -0,0 +1,19 @@
<?php
use App\Contracts\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Change the downloads link size
*/
class ModifyDownloadLinkSize extends Migration
{
public function up()
{
Schema::table('files', function (Blueprint $table) {
$table->mediumText('disk')->change()->nullable();
$table->mediumText('path')->change()->nullable();
});
}
}