#48 fixed some db field errors

This commit is contained in:
Nabeel Shahzad
2017-07-11 17:00:41 -05:00
parent 4f2f08af62
commit 35133fe0e6
5 changed files with 10 additions and 4 deletions

View File

@@ -23,8 +23,6 @@ class CreateFaresTable extends Migration
$table->string('notes')->nullable();
$table->boolean('active')->default(true);
$table->timestamps();
$table->primary('id');
});
}

View File

@@ -25,7 +25,7 @@ class CreateFlightsTable extends Migration
$table->text('route')->nullable();
$table->text('dpt_time', 10)->nullable();
$table->text('arr_time', 10)->nullable();
$table->double('flight_time', 19, 2)->unsigned();
$table->double('flight_time', 19, 2)->unsigned()->nullable();
$table->text('notes')->nullable();
$table->boolean('active')->default(true);
$table->timestamps();

View File

@@ -153,6 +153,12 @@ flights:
arr_airport_id: 2
route: KAUS KJFK
flight_fields:
- id: 1
flight_id: 1
name: terminal
value: B
pireps:
- user_id: 1
flight_id: 1