This commit is contained in:
2019-05-30 01:35:55 -05:00
parent fce1b4c584
commit 3b87ab5bcd
2 changed files with 3 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ class Structure extends Model
public $table = 'alliance_structures'; public $table = 'alliance_structures';
//Primary Key //Primary Key
public $primaryKey = 'structure_id'; public $primaryKey = 'id';
//Timestamps //Timestamps
public $timestamps = false; public $timestamps = false;

View File

@@ -15,7 +15,8 @@ class CorporationAssetsTable extends Migration
{ {
if(!Schema::hasTable('alliance_structures')) { if(!Schema::hasTable('alliance_structures')) {
Schema::create('alliance_structures', function(Blueprint $table) { Schema::create('alliance_structures', function(Blueprint $table) {
$table->string('structure_id')->primary()->unique(); $table->increments('id');
$table->string('structure_id')->unique();
$table->string('structure_name'); $table->string('structure_name');
$table->string('solar_system_id'); $table->string('solar_system_id');
$table->string('solar_system_name')->nullable(); $table->string('solar_system_name')->nullable();