diff --git a/app/Actions/Services/CreateService.php b/app/Actions/Services/CreateService.php index 3397e12..19e24c7 100644 --- a/app/Actions/Services/CreateService.php +++ b/app/Actions/Services/CreateService.php @@ -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, ]); diff --git a/app/Console/Commands/CreateServiceCommand.php b/app/Console/Commands/CreateServiceCommand.php index 147a759..1e45822 100644 --- a/app/Console/Commands/CreateServiceCommand.php +++ b/app/Console/Commands/CreateServiceCommand.php @@ -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');