cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
26 lines
579 B
PHP
26 lines
579 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Console\Commands\Overrides;
|
|
|
|
use Pterodactyl\Console\RequiresDatabaseMigrations;
|
|
use Illuminate\Foundation\Console\UpCommand as BaseUpCommand;
|
|
|
|
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();
|
|
}
|
|
}
|