Initial
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php namespace GermanAirlinesVa\Routes\Updates;
|
||||
|
||||
use Schema;
|
||||
use October\Rain\Database\Updates\Migration;
|
||||
|
||||
class BuilderTableCreateAirports extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('germanairlinesva_routes')->create('airports', function ($table) {
|
||||
$table->engine = 'InnoDB';
|
||||
$table->bigIncrements('id')->unsigned();
|
||||
$table->string('iata', 3);
|
||||
$table->string('icao', 3);
|
||||
$table->string('name');
|
||||
$table->string('country');
|
||||
$table->string('elevation');
|
||||
$table->string('latitude');
|
||||
$table->string('longitude');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('germanairlinesva_routes')->dropIfExists('airports');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user