From 81e90b79b43687bca3794e142289ae520cf5ae92 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Fri, 5 Sep 2025 11:05:59 +0200 Subject: [PATCH] set default name for startup --- app/Services/Eggs/Sharing/EggImporterService.php | 2 +- .../2025_09_03_090706_support_multiple_startup_commands.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Services/Eggs/Sharing/EggImporterService.php b/app/Services/Eggs/Sharing/EggImporterService.php index 5c464830a..3e90b3375 100644 --- a/app/Services/Eggs/Sharing/EggImporterService.php +++ b/app/Services/Eggs/Sharing/EggImporterService.php @@ -247,7 +247,7 @@ class EggImporterService unset($parsed['startup']); $parsed['startup_commands'] = [ - $startup => $startup, + 'Default' => $startup, ]; return $parsed; diff --git a/database/migrations/2025_09_03_090706_support_multiple_startup_commands.php b/database/migrations/2025_09_03_090706_support_multiple_startup_commands.php index db6a45180..8c0eb93ba 100644 --- a/database/migrations/2025_09_03_090706_support_multiple_startup_commands.php +++ b/database/migrations/2025_09_03_090706_support_multiple_startup_commands.php @@ -18,9 +18,7 @@ return new class extends Migration }); DB::table('eggs')->select(['id', 'startup'])->cursor()->each(function ($egg) { - $startup = $egg->startup; - - DB::table('eggs')->where('id', $egg->id)->update(['startup_commands' => [$startup => $startup]]); + DB::table('eggs')->where('id', $egg->id)->update(['startup_commands' => ['Default' => $egg->startup]]); }); Schema::table('eggs', function (Blueprint $table) {