Remove tail_number field from aircraft

This commit is contained in:
Nabeel Shahzad
2018-02-12 11:03:25 -06:00
parent 62506a26a1
commit ee71f4a1c8
7 changed files with 23 additions and 41 deletions

View File

@@ -14,7 +14,6 @@ $factory->define(App\Models\Aircraft::class, function (Faker $faker) {
'icao' => $faker->unique()->text(5),
'name' => $faker->unique()->text(50),
'registration' => $faker->unique()->text(10),
'tail_number' => $faker->unique()->text(10),
'active' => true,
'created_at' => $faker->dateTimeBetween('-1 week', 'now'),
'updated_at' => function (array $pirep) {

View File

@@ -15,10 +15,9 @@ class CreateAircraftsTable extends Migration
$table->string('icao', 4)->nullable();
$table->string('airport_id', 5)->nullable();
$table->timestamp('landing_time')->nullable();
$table->string('hex_code', 10)->nullable();
$table->string('name', 50);
$table->string('registration', 10)->nullable();
$table->string('tail_number', 10)->nullable();
$table->string('hex_code', 10)->nullable();
$table->unsignedDecimal('zfw', 12)->nullable()->default(0);
$table->unsignedBigInteger('flight_time')->nullable()->default(0);
$table->boolean('active')->default(true);

View File

@@ -4,6 +4,7 @@ airlines:
icao: VMS
iata: VM
name: phpvms airlines
country: us
active: 1
created_at: now
updated_at: now
@@ -183,18 +184,15 @@ aircraft:
- id: 1
subfleet_id: 1
name: Boeing 747-400
registration: NC17
tail_number: 17
registration: 001Z
- id: 2
subfleet_id: 2
name: Boeing 777-200
registration: NC20
tail_number: 20
registration: C202
- id: 3
subfleet_id: 1
name: Boeing 747-412
registration: NS233
tail_number: 1233
registration: S2333
fares:
- id: 1