Nice disable warning.

This commit is contained in:
James Cole 2024-01-01 09:46:13 +01:00
parent 4747e28621
commit 3ad155882a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -48,17 +48,20 @@ class MigrateRecurrenceType extends Command
*/
public function handle(): int
{
return 0;
if ($this->isExecuted() && true !== $this->option('force')) {
$this->friendlyInfo('This command has already been executed.');
return 0;
}
$this->migrateTypes();
$this->markAsExecuted();
$this->friendlyWarning('This command has been disabled.');
return 0;
// $this->migrateTypes();
// $this->markAsExecuted();
//
// return 0;
}
private function isExecuted(): bool