File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 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
103namespace 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
You can’t perform that action at this time.
0 commit comments