1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00

Change to actual function names to support MariaDB

This commit is contained in:
Lance Pioch 2021-04-08 17:34:25 -04:00 committed by GitHub
parent f973285e04
commit 77a3ca682f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ class ServerDetailsController extends Controller
/** @var \Pterodactyl\Models\Server[] $servers */ /** @var \Pterodactyl\Models\Server[] $servers */
$servers = Server::query() $servers = Server::query()
->select('servers.*') ->select('servers.*')
->selectRaw('started.metadata->>"$.backup_uuid" as backup_uuid') ->selectRaw('JSON_UNQUOTE(JSON_EXTRACT(started.metadata, "$.backup_uuid")) as backup_uuid')
->leftJoinSub(function (Builder $builder) { ->leftJoinSub(function (Builder $builder) {
$builder->select('*')->from('audit_logs') $builder->select('*')->from('audit_logs')
->where('action', AuditLog::SERVER__BACKUP_RESTORE_STARTED) ->where('action', AuditLog::SERVER__BACKUP_RESTORE_STARTED)