import moons

This commit is contained in:
2021-05-30 18:54:59 +09:00
parent 89e4110ab0
commit 51da1dbbc3
7 changed files with 19 additions and 46 deletions

View File

@@ -61,8 +61,13 @@ class ImportAllianceMoons extends Command
//Create the collection of lines for the input file.
$moons = new Collection;
AllianceMoonOre::truncate();
AllianceMoon::truncate();
if(!AllianceMoonOre::empty()) {
AllianceMoonOre::truncate();
}
if(!AllianceMoon::empty()) {
AllianceMoon::truncate();
}
//Create the file handler
$data = Storage::get('public/alliance_moons.txt');