#12058 Added database version in diagnostic information and about
This commit is contained in:
parent
963664c1d8
commit
2066907ded
|
@ -708,6 +708,10 @@ class Diagnostics extends Wizard
|
|||
{
|
||||
global $config;
|
||||
|
||||
// Get version comment DB.
|
||||
$sql_version_comment = 'select @@version_comment as version_comment';
|
||||
$version_comment = db_get_sql($sql_version_comment);
|
||||
|
||||
$result = [
|
||||
'error' => false,
|
||||
'data' => [
|
||||
|
@ -723,6 +727,14 @@ class Diagnostics extends Wizard
|
|||
'name' => __('DB Schema Build'),
|
||||
'value' => $config['db_scheme_build'],
|
||||
],
|
||||
'dbVersion' => [
|
||||
'name' => __('Engine version'),
|
||||
'value' => $config['dbconnection']->server_info,
|
||||
],
|
||||
'dbVersionComment' => [
|
||||
'name' => __('Version comment'),
|
||||
'value' => $version_comment,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -1107,6 +1107,14 @@ if (is_ajax()) {
|
|||
<p class="about-last-p" style="font-size: 10pt;">'.$db_info->data->dbSize->value.'</p>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="about-last-tr">
|
||||
<th style="width: 50%;">
|
||||
<p class="about-last-p"><span>'.$db_info->data->dbVersion->name.'</span></p>
|
||||
</th>
|
||||
<th style="width: 50%;">
|
||||
<p class="about-last-p" style="font-size: 10pt;">'.$db_info->data->dbVersion->value.'</p>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
|
|
Loading…
Reference in New Issue