Files

29 lines
606 B
PHP
Raw Permalink Normal View History

<?php
2026-10-05 18:10:18 -04:00
declare(strict_types=1);
namespace Pterodactyl\Console\Commands\Overrides;
use Illuminate\Foundation\Console\UpCommand as BaseUpCommand;
2026-10-05 18:10:18 -04:00
use Pterodactyl\Console\RequiresDatabaseMigrations;
class UpCommand extends BaseUpCommand
{
use RequiresDatabaseMigrations;
/**
2021-01-23 14:12:15 -08:00
* Block someone from running this up command if they have not completed
* the migration process.
*/
2022-10-14 10:59:20 -06:00
public function handle(): int
{
2026-10-05 18:10:18 -04:00
if (! $this->hasCompletedMigrations()) {
$this->showMigrationWarning();
2022-10-14 10:59:20 -06:00
return 1;
}
return parent::handle();
}
}