Initial commit

This commit is contained in:
Gogs
2021-06-02 23:37:15 +02:00
commit f4bff143a2
36 changed files with 770 additions and 0 deletions
@@ -0,0 +1,26 @@
<?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');
}
}
@@ -0,0 +1,45 @@
<?php namespace GermanAirlinesVa\Fleet\Updates;
use Config;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableCreateGermanAirlinesVaAircraftTypes extends Migration
{
public function up()
{
Schema::connection('germanairlinesva_fleet')->create('ga_aircraft_types', function ($table) {
//Schema::create('ga_aircraft_types', function ($table) {
$table->engine = 'InnoDB';
$table->bigIncrements('id')->unsigned();
$table->bigInteger('aircraft_manufacturer_id')->unsigned();
$table->bigInteger('typerating_id')->unsigned();
$table->enum('only_charter', ['yes', 'no']);
$table->string('type');
$table->text('description');
$table->string('simbrief_type');
$table->string('wingspan');
$table->string('length');
$table->string('cruise_speed');
$table->string('range');
$table->string('engines');
$table->integer('dom')->unsigned();
$table->integer('mpld')->unsigned();
$table->integer('mzfm')->unsigned();
$table->integer('fuel_capacity')->unsigned();
$table->integer('mtom')->unsigned();
$table->integer('mlam')->unsigned();
$table->integer('max_fl')->unsigned();
$table->integer('capacity_flight_crew')->unsigned();
$table->integer('capacity_cabin_crew')->unsigned();
$table->integer('capacity_passengers')->unsigned();
$table->integer('capacity_cargo')->unsigned();
});
}
public function down()
{
Schema::connection('germanairlinesva_fleet')->dropIfExists('ga_aircraft_types');
//Schema::dropIfExists('ga_aircraft_types');
}
}
+7
View File
@@ -0,0 +1,7 @@
1.0.1:
- 'Initialize plugin.'
1.0.2:
- 'Created table aircraft_manufacturers'
- builder_table_create_aircraft_manufacturers.php
- 'Created table aircraft_types'
- builder_table_create_aircraft_types.php