28 lines
716 B
PHP
28 lines
716 B
PHP
<?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');
|
|
}
|
|
}
|