integer('corporation_id'); $table->dateTime('fuel_expires'); $table->dateTime('next_reinforce_apply'); $table->integer('next_reinforce_hour'); $table->integer('next_reinforce_weekday'); $table->integer('profile_id'); $table->integer('reinforce_hour'); $table->integer('reinforce_weekday'); $table->dateTime('services'); $table->string('state'); $table->date('state_timer_end'); $table->date('state_timer_start'); $table->integer('structure_id')->unique(); $table->integer('system_id'); $table->integer('type_id'); $table->dateTime('unanchors_at'); $table->timestamps(); }); } if(!Schema::hasTable('CorpStructures')) { Schema::create('CorpStructures', function(Blueprint $table) { $table->increments('id'); $table->integer('character_id'); $table->integer('corporation_id'); $table->string('corporation_name'); $table->string('region'); $table->string('system'); $table->string('structure_name'); $table->decimal('tax', 10, 2); $table->string('structure_type'); $table->timestamps(); }); } if(!Schema::hasTable('corp_tax_ratios')) { Schema::create('corp_tax_ratios', function (Blueprint $table) { $table->increments('id'); $table->string('corporation_id'); $table->string('corporation_name'); $table->string('structure_type'); $table->string('ratio'); $table->timestamps(); }); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Structures'); Schema::dropIfExists('CorpStructures'); Schema::dropIfExists('corp_tax_ratios'); } }