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
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
3 changed files with 7 additions and 5 deletions

View File

@ -351,9 +351,6 @@ msgstr ""
msgid "Close"
msgstr ""
msgid "Released on"
msgstr ""
msgid "Added %1$s of %2$s to stock"
msgstr ""

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'
];

View File

@ -36,7 +36,7 @@
<td><code>{{ $versionInfo->Version }}</code></td>
</tr>
<tr>
<td class="text-right">{{ $__t('Released on') }}</td>
<td class="text-right">Released on</td>
<td><code>{{ $versionInfo->ReleaseDate }}</code> <time class="timeago timeago-contextual text-muted"
datetime="{{ $versionInfo->ReleaseDate }}"></time></td>
</tr>
@ -48,6 +48,10 @@
<td class="text-right">SQLite Version</td>
<td><code>{{ $systemInfo['sqlite_version'] }}</code></td>
</tr>
<tr>
<td class="text-right">Database Version</td>
<td><code>{{ $systemInfo['db_version'] }}</code></td>
</tr>
<tr>
<td class="text-right">OS</td>
<td><code>{{ $systemInfo['os'] }}</code></td>
@ -78,7 +82,7 @@
data-toggle="collapse-next"
href="#">
Version <span class="font-weight-bold">{{ $changelogItem['version'] }}</span><br>
{{ $__t('Released on') }} <span class="font-weight-bold">{{ $changelogItem['release_date'] }}</span>
Released on <span class="font-weight-bold">{{ $changelogItem['release_date'] }}</span>
<time class="timeago timeago-contextual text-muted"
datetime="{{ $changelogItem['release_date'] }}"></time>
</a>