anchoring structure form

This commit is contained in:
2019-09-02 02:08:25 -05:00
parent 960435f874
commit b9f4678d70
5 changed files with 96 additions and 6 deletions
@@ -0,0 +1,53 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAllianceAnchorStructureTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('alliance_anchor_structure')) {
Schema::create('alliance_anchor_structure', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('corporation_id');
$table->string('corporation_name');
$table->string('system');
$table->enum('structure_size', [
'M',
'L',
'XL',
]);
$table->enum('structure_type', [
'Flex',
'Citadel',
'Engineering',
'Refinery',
]);
$table->dateTime('requested_drop_time');
$table->unsignedInteger('assigned_fc_id')->nullable();
$table->string('assigned_fc')->nullable();
$table->unsignedInteger('requester_id');
$table->string('requester');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('alliance_anchor_structure');
}
}