cleaning stale data console command modified

This commit is contained in:
2019-12-11 20:36:19 -06:00
parent 8447319514
commit 55225fdea3
4 changed files with 25 additions and 4 deletions

View File

@@ -2,9 +2,18 @@
namespace App\Console\Commands;
//Internal Library
use Illuminate\Console\Command;
//Library
use Commands\Library\CommandHelper;
//Models
use App\Models\Lookups\AllianceLookup;
use App\Models\Lookups\CharacterLookup;
use App\Models\Lookups\CorporationLookup;
use App\Models\Lookups\ItemLookup;
class CleanStaleDataCommand extends Command
{
/**
@@ -40,5 +49,17 @@ class CleanStaleDataCommand extends Command
{
$command = new CommandHelper;
$command->CleanJobStatusTable();
//Empty the item lookup table
ItemLookup::truncate();
//Empty the character lookup table
CharacterLookup::truncate();
//Empty the corporation lookup table
CorporationLookup::truncate();
//Empty the alliance lookup table
AllianceLookup::truncate();
}
}