citadel lookup

This commit is contained in:
2019-10-21 00:55:58 -05:00
parent d9dec56700
commit c18ebcba22
7 changed files with 158 additions and 5 deletions

View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCitadelLookupTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('citadel_lookup')) {
Schema::create('citadel_lookup', function(Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('structure_id');
$table->string('name');
$table->bigInteger('position_x');
$table->bigInteger('position_y');
$table->bigInteger('position_z');
$table->unsignedBigInteger('solar_system_id');
$table->unsignedBigInteger('type_id');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('citadel_lookup');
}
}