27 lines
775 B
PHP
27 lines
775 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('ga_aircraft_manufacturers', function ($table) {
|
|
//Schema::create('ga_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('ga_aircraft_manufacturers');
|
|
//Schema::dropIfExists('ga_aircraft_manufacturers');
|
|
}
|
|
}
|