Adding Ship Type Dropdown
This commit is contained in:
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateEliteShipsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('elite_ships', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('shipName');
|
||||
$table->string('shipClass');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('elite_ships');
|
||||
}
|
||||
}
|
88
database/migrations/2021_04_08_042901_add_elite_ships.php
Normal file
88
database/migrations/2021_04_08_042901_add_elite_ships.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddEliteShips extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
\Illuminate\Support\Facades\DB::table('elite_ships')
|
||||
->insert(array(
|
||||
// Small Ships
|
||||
array('shipName'=>'Adder', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Cobra MkIII', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Cobra MkIV', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Diamondback Scout', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Diamondback Explorer', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Dolphin', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Eagle MkII', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Hauler', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Imperial Courier', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Imperial Eagle', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Sidewinder MkI', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Viper MkIII', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Viper MkIV', 'shipClass'=>'S'),
|
||||
array('shipName'=>'Vulture', 'shipClass'=>'S'),
|
||||
|
||||
// Medium Ships
|
||||
array('shipName'=>'Alliance Challenger', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Alliance Chieftain', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Alliance Crusader', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Asp Explorer', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Asp Scout', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Federal Assault Ship', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Federal Dropship', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Federal Gunship', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Fer-de-Lance', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Keelback', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Krait MkII', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Krait Phantom', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Mamba', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Python', 'shipClass'=>'M'),
|
||||
array('shipName'=>'Type-6 Transporter', 'shipClass'=>'M'),
|
||||
|
||||
// Large Ships
|
||||
array('shipName'=>'Anaconda', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Beluga Liner', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Federal Corvette', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Imperial Cutter', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Imperial Clipper', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Orca', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Type-7 Transporter', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Type-9 Heavy', 'shipClass'=>'L'),
|
||||
array('shipName'=>'Type-10 Defender', 'shipClass'=>'L'),
|
||||
|
||||
// Other Ships
|
||||
|
||||
array('shipName'=>'F63 Condor', 'shipClass'=>'O'),
|
||||
array('shipName'=>'Gu-97', 'shipClass'=>'O'),
|
||||
array('shipName'=>'Taipan', 'shipClass'=>'O'),
|
||||
array('shipName'=>'XG7 Trident', 'shipClass'=>'O'),
|
||||
array('shipName'=>'XG8 Javelin', 'shipClass'=>'O'),
|
||||
array('shipName'=>'XG9 Lance', 'shipClass'=>'O'),
|
||||
|
||||
// Carrier Ships
|
||||
|
||||
array('shipName'=>'Drake-Class Carrier', 'shipClass'=>'C')
|
||||
|
||||
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user