mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 22:38:40 +02:00
set default name for startup
This commit is contained in:
parent
e6441d2b15
commit
81e90b79b4
@ -247,7 +247,7 @@ class EggImporterService
|
||||
unset($parsed['startup']);
|
||||
|
||||
$parsed['startup_commands'] = [
|
||||
$startup => $startup,
|
||||
'Default' => $startup,
|
||||
];
|
||||
|
||||
return $parsed;
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user