Files
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

29 lines
620 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Console\Commands\Overrides;
use Illuminate\Database\Console\Seeds\SeedCommand as BaseSeedCommand;
use Pterodactyl\Console\RequiresDatabaseMigrations;
class SeedCommand extends BaseSeedCommand
{
use RequiresDatabaseMigrations;
/**
* Block someone from running this seed command if they have not completed
* the migration process.
*/
public function handle(): int
{
if (! $this->hasCompletedMigrations()) {
$this->showMigrationWarning();
return 1;
}
return parent::handle();
}
}