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
606 B
PHP

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