misc_pterodactyl-panel/app/Console/Commands/Overrides/SeedCommand.php

27 lines
579 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Console\Commands\Overrides;
use Pterodactyl\Console\RequiresDatabaseMigrations;
use Illuminate\Database\Console\Seeds\SeedCommand as BaseSeedCommand;
class SeedCommand extends BaseSeedCommand
{
use RequiresDatabaseMigrations;
/**
2021-01-23 22:12:15 +00:00
* Block someone from running this seed command if they have not completed
* the migration process.
*/
public function handle()
{
2021-01-23 20:33:34 +00:00
if (!$this->hasCompletedMigrations()) {
$this->showMigrationWarning();
return;
}
parent::handle();
}
}