25 lines
640 B
PHP
25 lines
640 B
PHP
<?php namespace GermanAirlinesVa\Fleet\Updates;
|
|
|
|
use Config;
|
|
use Schema;
|
|
use October\Rain\Database\Updates\Migration;
|
|
|
|
class BuilderTableCreateGermanAirlinesVaAircraftManufacturers extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::connection('germanairlinesva_fleet')->create('aircraft_manufacturers', function ($table) {
|
|
$table->engine = 'InnoDB';
|
|
$table->bigIncrements('id')->unsigned();
|
|
$table->string('name');
|
|
$table->text('history');
|
|
$table->string('link');
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::connection('germanairlinesva_fleet')->dropIfExists('aircraft_manufacturers');
|
|
}
|
|
}
|