modified unused tables
This commit is contained in:
@@ -13,64 +13,72 @@ class CreateMiningTaxTables extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('alliance_mining_tax_invoices', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('character_id');
|
||||
$table->string('character_name');
|
||||
$table->unsignedBigInteger('invoice_id');
|
||||
$table->float('invoice_amount');
|
||||
$table->dateTime('date_issued');
|
||||
$table->dateTime('date_due');
|
||||
$table->enum('status', [
|
||||
'Pending',
|
||||
'Paid',
|
||||
'Late',
|
||||
'Paid Late',
|
||||
'Deferred',
|
||||
'Deleted',
|
||||
])->default('Pending');
|
||||
$table->timestamps();
|
||||
});
|
||||
if(!Schema::hasTable('alliance_mining_tax_invoices')) {
|
||||
Schema::create('alliance_mining_tax_invoices', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('character_id');
|
||||
$table->string('character_name');
|
||||
$table->unsignedBigInteger('invoice_id');
|
||||
$table->float('invoice_amount');
|
||||
$table->dateTime('date_issued');
|
||||
$table->dateTime('date_due');
|
||||
$table->enum('status', [
|
||||
'Pending',
|
||||
'Paid',
|
||||
'Late',
|
||||
'Paid Late',
|
||||
'Deferred',
|
||||
'Deleted',
|
||||
])->default('Pending');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
if(!Schema::hasTable('alliance_mining_tax_observers')) {
|
||||
Schema::create('alliance_mining_tax_observers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->dateTime('last_updated');
|
||||
$table->unsignedBigInteger('observer_id');
|
||||
$table->string('observer_type');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
if(!Schema::hasTable('alliance_mining_tax_ledgers')) {
|
||||
Schema::create('alliance_mining_tax_ledgers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('character_id');
|
||||
$table->string('character_name');
|
||||
$table->dateTime('last_updated');
|
||||
$table->unsignedBigInteger('type_id');
|
||||
$table->string('ore_name');
|
||||
$table->unsignedBigInteger('quantity');
|
||||
$table->decimal('amount', 20, 2)->default(0.00);
|
||||
$table->enum('invoiced', [
|
||||
'No',
|
||||
'Yes',
|
||||
])->default('No');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Schema::create('alliance_mining_tax_observers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->dateTime('last_updated');
|
||||
$table->unsignedBigInteger('observer_id');
|
||||
$table->string('observer_type');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('alliance_mining_tax_ledgers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('character_id');
|
||||
$table->string('character_name');
|
||||
$table->dateTime('last_updated');
|
||||
$table->unsignedBigInteger('type_id');
|
||||
$table->string('ore_name');
|
||||
$table->unsignedBigInteger('quantity');
|
||||
$table->decimal('amount', 20, 2)->default(0.00);
|
||||
$table->enum('invoiced', [
|
||||
'No',
|
||||
'Yes',
|
||||
])->default('No');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create('alliance_mining_tax_payments', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('character_id');
|
||||
$table->string('character_name');
|
||||
$table->unsignedBigInteger('invoice_id');
|
||||
$table->float('invoice_amount');
|
||||
$table->float('payment_amount');
|
||||
$table->dateTime('payment_date');
|
||||
$table->enum('status', [
|
||||
'Pending',
|
||||
'Accepted',
|
||||
'Rejected',
|
||||
]);
|
||||
$table->timestamps();
|
||||
});
|
||||
if(!Schema::hasTable('alliance_mining_tax_payments')) {
|
||||
Schema::create('alliance_mining_tax_payments', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('character_id');
|
||||
$table->string('character_name');
|
||||
$table->unsignedBigInteger('invoice_id');
|
||||
$table->float('invoice_amount');
|
||||
$table->float('payment_amount');
|
||||
$table->dateTime('payment_date');
|
||||
$table->enum('status', [
|
||||
'Pending',
|
||||
'Accepted',
|
||||
'Rejected',
|
||||
]);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class RemoveUnusedTables02142021 extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::dropIfExists('wiki_groupnames');
|
||||
Schema::dropIfExists('wiki_member');
|
||||
Schema::dropIfExists('wiki_user');
|
||||
Schema::dropIfExists('PlayerDonationJournals');
|
||||
Schema::dropIfExists('corp_mining_observers');
|
||||
Schema::dropIfExists('corp_moon_ledgers');
|
||||
Schema::dropIfExists('alliance_anchor_structure');
|
||||
Schema::dropIfExists('alliance_rental_moons');
|
||||
Schema::dropIfExists('alliance_moon_rental_invoices');
|
||||
Schema::dropIfExists('alliance_moon_rental_payments');
|
||||
Schema::dropIfExists('alliance_moon_requests');
|
||||
Schema::dropIfExists('alliance_rental_moons');
|
||||
Schema::dropIfExists('alliance_rental_moon_ledgers');
|
||||
Schema::dropIfExists('alliance_rental_systems');
|
||||
Schema::dropIfExists('fleet_activity_tracking');
|
||||
Schema::dropIfExists('Fleets');
|
||||
Schema::dropIfExists('eve_mails');
|
||||
Schema::dropIfExists('bucks_character_wallet_entries');
|
||||
Schema::dropIfExists('bucks_alliance_systems');
|
||||
Schema::dropIfExists('bucks_ratting_daily_pool');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
//Do nothing since we are only removing tables
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user