driverName

This commit is contained in:
2025-03-31 15:58:51 +00:00
parent d5f969c453
commit 8f23e84c6d
2 changed files with 3 additions and 4 deletions

View File

@@ -17,14 +17,14 @@ class CreateService
ServiceCategory $category,
ServiceType $type,
string $version,
string $driverName,
) {
$driverName = "{$type->value}.{$version}";
$service = $server->services()->create([
'name' => $name,
'category' => $category,
'type' => $type,
'type' => $type, // postgres
'version' => $version, // 17
'driver_name' => $driverName, // postgres
'driver_name' => $driverName, // postgres.17
'status' => ServiceStatus::NOT_INSTALLED,
]);

View File

@@ -36,7 +36,6 @@ class CreateServiceCommand extends Command
category: ServiceCategory::DATABASE,
type: ServiceType::tryFrom($type),
version: $version,
driverName: $serviceType,
);
$this->components->info('Service created successfully');