increments('id'); $table->string('icao', 5); $table->string('iata', 5)->nullable(); $table->string('name', 50); $table->string('country', 2)->nullable(); $table->string('logo', 255)->nullable(); $table->boolean('active'); $table->timestamps(); $table->index('icao'); $table->unique('icao'); $table->index('iata'); $table->unique('iata'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('airlines'); } }