added tagging to jobs

This commit is contained in:
2021-04-27 00:49:49 +09:00
parent fdbc7ddf1b
commit ae4436d3f1
25 changed files with 312 additions and 94 deletions

View File

@@ -41,7 +41,6 @@ class CreateMiningTaxTables extends Migration
$table->dateTime('last_updated');
$table->unsignedBigInteger('observer_id');
$table->string('observer_type');
$table->string('observer_name');
$table->timestamps();
});
}

View File

@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ModifyMiningTaxTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(Schema::hasTable('alliance_mining_tax_observers')) {
Schema::table('alliance_mining_tax_observers', function(Blueprint $table) {
$table->string('observer_name')->nullable();
$table->unsignedBigInteger('solar_system_id')->nullable();
$table->string('solar_system_name')->nullable();
$table->enum('corp_rented', [
'No',
'Yes',
])->default('No');
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//Drop the newly created columns
Schema::table('alliance_mining_tax_observers', function(Blueprint $table) {
$table->dropColumn(['observer_name']);
$table->dropColumn(['solar_system_id']);
$table->dropColumn(['solar_system_name']);
$table->dropColumn(['corp_rented']);
});
}
}