Skip to content

Commit 541b9ec

Browse files
committed
Fix database name using d#_ rather than s#_, ref pterodactyl#957
1 parent 3fb02a4 commit 541b9ec

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

app/Services/Databases/DatabaseManagementService.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
<?php
2-
/**
3-
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
5-
*
6-
* This software is licensed under the terms of the MIT license.
7-
* https://opensource.org/licenses/MIT
8-
*/
92

103
namespace Pterodactyl\Services\Databases;
114

@@ -65,13 +58,11 @@ public function __construct(
6558
* @return \Illuminate\Database\Eloquent\Model
6659
*
6760
* @throws \Exception
68-
* @throws \Pterodactyl\Exceptions\DisplayException
69-
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
7061
*/
7162
public function create($server, array $data)
7263
{
7364
$data['server_id'] = $server;
74-
$data['database'] = sprintf('d%d_%s', $server, $data['database']);
65+
$data['database'] = sprintf('s%d_%s', $server, $data['database']);
7566
$data['username'] = sprintf('u%d_%s', $server, str_random(10));
7667
$data['password'] = $this->encrypter->encrypt(str_random(16));
7768

0 commit comments

Comments
 (0)