From 3ad155882acf5aac9834ce0f34747c231f805fe4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 1 Jan 2024 09:46:13 +0100 Subject: [PATCH] Nice disable warning. --- .../Commands/Upgrade/MigrateRecurrenceType.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Upgrade/MigrateRecurrenceType.php b/app/Console/Commands/Upgrade/MigrateRecurrenceType.php index 6a719c03d2..f2cbada3f5 100644 --- a/app/Console/Commands/Upgrade/MigrateRecurrenceType.php +++ b/app/Console/Commands/Upgrade/MigrateRecurrenceType.php @@ -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