Files

27 lines
593 B
PHP
Raw Permalink Normal View History

<?php
namespace Pterodactyl\Console\Commands\Overrides;
use Pterodactyl\Console\RequiresDatabaseMigrations;
use Illuminate\Database\Console\Seeds\SeedCommand as BaseSeedCommand;
class SeedCommand extends BaseSeedCommand
{
use RequiresDatabaseMigrations;
/**
2021-01-23 14:12:15 -08:00
* Block someone from running this seed command if they have not completed
* the migration process.
*/
2022-10-14 10:59:20 -06:00
public function handle(): int
{
2021-01-23 12:33:34 -08:00
if (!$this->hasCompletedMigrations()) {
$this->showMigrationWarning();
2022-10-14 10:59:20 -06:00
return 1;
}
2022-10-14 10:59:20 -06:00
return parent::handle();
}
}