Changed some PKs to bigInts
This commit is contained in:
@@ -14,7 +14,7 @@ class CreateFaresTable extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('fares', function (Blueprint $table) {
|
Schema::create('fares', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->string('code', 50);
|
$table->string('code', 50);
|
||||||
$table->string('name', 50);
|
$table->string('name', 50);
|
||||||
$table->decimal('price', 19, 2)->default(0.0);
|
$table->decimal('price', 19, 2)->default(0.0);
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class CreateAirportsTable extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('airports', function (Blueprint $table) {
|
Schema::create('airports', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->string('icao', 5)->unique();
|
$table->string('icao', 5)->unique();
|
||||||
$table->string('name', 50);
|
$table->string('name', 50);
|
||||||
$table->string('location', 50)->nullable();
|
$table->string('location', 50)->nullable();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class CreateFlightsTable extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
Schema::create('flight_fields', function (Blueprint $table) {
|
Schema::create('flight_fields', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->uuid('flight_id');
|
$table->uuid('flight_id');
|
||||||
$table->string('name', 50);
|
$table->string('name', 50);
|
||||||
$table->text('value');
|
$table->text('value');
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class CreateSubfleetsTable extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::create('subfleets', function (Blueprint $table) {
|
Schema::create('subfleets', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->integer('airline_id')->unsigned()->nullable();
|
$table->integer('airline_id')->unsigned()->nullable();
|
||||||
$table->string('name', 50);
|
$table->string('name', 50);
|
||||||
$table->string('type', 7);
|
$table->string('type', 7);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class CreatePirepsTable extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
Schema::create('pirep_comments', function (Blueprint $table) {
|
Schema::create('pirep_comments', function (Blueprint $table) {
|
||||||
$table->bigIncrements('id')->unsigned();
|
$table->bigIncrements('id');
|
||||||
$table->uuid('pirep_id');
|
$table->uuid('pirep_id');
|
||||||
$table->bigInteger('user_id', false, true);
|
$table->bigInteger('user_id', false, true);
|
||||||
$table->text('comment');
|
$table->text('comment');
|
||||||
@@ -61,7 +61,7 @@ class CreatePirepsTable extends Migration
|
|||||||
* Financial tables/fields
|
* Financial tables/fields
|
||||||
*/
|
*/
|
||||||
Schema::create('pirep_expenses', function (Blueprint $table) {
|
Schema::create('pirep_expenses', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->uuid('pirep_id');
|
$table->uuid('pirep_id');
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->double('value', 19, 2)->nullable();
|
$table->double('value', 19, 2)->nullable();
|
||||||
@@ -70,7 +70,7 @@ class CreatePirepsTable extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
Schema::create('pirep_fares', function (Blueprint $table) {
|
Schema::create('pirep_fares', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->uuid('pirep_id');
|
$table->uuid('pirep_id');
|
||||||
$table->unsignedBigInteger('fare_id');
|
$table->unsignedBigInteger('fare_id');
|
||||||
$table->double('count', 19, 2)->nullable();
|
$table->double('count', 19, 2)->nullable();
|
||||||
@@ -82,14 +82,14 @@ class CreatePirepsTable extends Migration
|
|||||||
* Additional PIREP data
|
* Additional PIREP data
|
||||||
*/
|
*/
|
||||||
Schema::create('pirep_fields', function (Blueprint $table) {
|
Schema::create('pirep_fields', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->string('name', 50);
|
$table->string('name', 50);
|
||||||
$table->integer('required');
|
$table->integer('required');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::create('pirep_field_values', function (Blueprint $table) {
|
Schema::create('pirep_field_values', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->bigIncrements('id');
|
||||||
$table->uuid('pirep_id');
|
$table->uuid('pirep_id');
|
||||||
$table->string('name', 50);
|
$table->string('name', 50);
|
||||||
$table->text('value');
|
$table->text('value');
|
||||||
@@ -108,6 +108,7 @@ class CreatePirepsTable extends Migration
|
|||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::drop('pireps');
|
Schema::drop('pireps');
|
||||||
|
Schema::drop('pirep_comments');
|
||||||
Schema::drop('pirep_expenses');
|
Schema::drop('pirep_expenses');
|
||||||
Schema::drop('pirep_fares');
|
Schema::drop('pirep_fares');
|
||||||
Schema::drop('pirep_fields');
|
Schema::drop('pirep_fields');
|
||||||
|
|||||||
Reference in New Issue
Block a user