#32 subfleet classificiation scaffolding

This commit is contained in:
Nabeel Shahzad
2017-06-22 20:55:45 -05:00
parent 6bbb37061b
commit aaaead77a5
28 changed files with 493 additions and 348 deletions

View File

@@ -14,8 +14,10 @@ class CreateAircraftsTable extends Migration
$table->string('name');
$table->string('registration')->nullable();
$table->string('tail_number')->nullable();
$table->string('cargo_capacity')->nullable();
$table->string('fuel_capacity')->nullable();
$table->double('cargo_capacity', 19, 2)->nullable();
$table->double('fuel_capacity', 19, 2)->nullable();
$table->double('gross_weight', 19, 2)->nullable();
$table->tinyInteger('fuel_type')->unsigned()->nullable();
$table->boolean('active')->default(true);
$table->timestamps();
@@ -23,20 +25,10 @@ class CreateAircraftsTable extends Migration
$table->unique('registration');
});
Schema::create('aircraft_classes', function (Blueprint $table) {
$table->increments('id');
$table->string('code');
$table->string('name');
$table->string('notes')->nullable();
$table->timestamps();
$table->index('code');
});
}
public function down()
{
Schema::drop('aircraft');
Schema::drop('aircraft_classes');
}
}