From 541b9ec7f525ccbc2afaabbd87e65980e2e015e0 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 18 Feb 2018 13:46:42 -0600 Subject: [PATCH] Fix database name using d#_ rather than s#_, ref #957 --- app/Services/Databases/DatabaseManagementService.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/Services/Databases/DatabaseManagementService.php b/app/Services/Databases/DatabaseManagementService.php index 95182a288..b05ddc3ff 100644 --- a/app/Services/Databases/DatabaseManagementService.php +++ b/app/Services/Databases/DatabaseManagementService.php @@ -1,11 +1,4 @@ . - * - * This software is licensed under the terms of the MIT license. - * https://opensource.org/licenses/MIT - */ namespace Pterodactyl\Services\Databases; @@ -65,13 +58,11 @@ class DatabaseManagementService * @return \Illuminate\Database\Eloquent\Model * * @throws \Exception - * @throws \Pterodactyl\Exceptions\DisplayException - * @throws \Pterodactyl\Exceptions\Model\DataValidationException */ public function create($server, array $data) { $data['server_id'] = $server; - $data['database'] = sprintf('d%d_%s', $server, $data['database']); + $data['database'] = sprintf('s%d_%s', $server, $data['database']); $data['username'] = sprintf('u%d_%s', $server, str_random(10)); $data['password'] = $this->encrypter->encrypt(str_random(16));