Added database version to system info

This commit is contained in:
Bernd Bestel
2025-01-31 15:44:57 +01:00
parent a35db9f1d3
commit aa88046ca4
3 changed files with 7 additions and 5 deletions

View File

@@ -69,6 +69,7 @@ class ApplicationService extends BaseService
'grocy_version' => $this->GetInstalledVersion(),
'php_version' => phpversion(),
'sqlite_version' => $sqliteVersion,
'db_version' => $this->getDatabase()->migrations()->max('migration'),
'os' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'),
'client' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'unknown'
];