set default name for startup

This commit is contained in:
Boy132 2025-09-05 11:05:59 +02:00
parent e6441d2b15
commit 81e90b79b4
2 changed files with 2 additions and 4 deletions

View File

@ -247,7 +247,7 @@ class EggImporterService
unset($parsed['startup']);
$parsed['startup_commands'] = [
$startup => $startup,
'Default' => $startup,
];
return $parsed;

View File

@ -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) {