2020-10-13 03:51:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Console\Commands\Overrides;
|
|
|
|
|
|
|
|
use Pterodactyl\Console\RequiresDatabaseMigrations;
|
|
|
|
use Illuminate\Foundation\Console\UpCommand as BaseUpCommand;
|
|
|
|
|
|
|
|
class UpCommand extends BaseUpCommand
|
|
|
|
{
|
|
|
|
use RequiresDatabaseMigrations;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool|int
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
2021-01-23 20:09:16 +00:00
|
|
|
if (! $this->hasCompletedMigrations()) {
|
2020-10-13 03:51:35 +00:00
|
|
|
return $this->showMigrationWarning();
|
|
|
|
}
|
|
|
|
|
|
|
|
return parent::handle();
|
|
|
|
}
|
|
|
|
}
|