diff --git a/database/migrations/2017_06_08_191703_create_airlines_table.php b/database/migrations/2017_06_08_191703_create_airlines_table.php index 192fa89b..73346112 100644 --- a/database/migrations/2017_06_08_191703_create_airlines_table.php +++ b/database/migrations/2017_06_08_191703_create_airlines_table.php @@ -17,6 +17,7 @@ class CreateAirlinesTable extends Migration $table->increments('id'); $table->string('code'); $table->string('name'); + $table->char('country', 2)->nullable(); $table->boolean('active'); $table->timestamps(); diff --git a/database/migrations/2017_06_09_010621_create_aircrafts_table.php b/database/migrations/2017_06_09_010621_create_aircrafts_table.php index d19c2dba..8c93efe5 100644 --- a/database/migrations/2017_06_09_010621_create_aircrafts_table.php +++ b/database/migrations/2017_06_09_010621_create_aircrafts_table.php @@ -9,7 +9,8 @@ class CreateAircraftsTable extends Migration { Schema::create('aircraft', function (Blueprint $table) { $table->increments('id'); - $table->integer('aircraft_class_id')->unsigned()->nullable(); + $table->integer('subfleet_id')->unsigned()->nullable(); + $table->string('hex_code')->nullable(); $table->string('icao'); $table->string('name'); $table->string('registration')->nullable();