1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Show Progress column only on MariaDB

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu
2022-05-30 01:13:15 +02:00
parent e3f3c70481
commit 8ddfd4893f
2 changed files with 13 additions and 7 deletions

View File

@@ -133,14 +133,18 @@ final class Processes
'column_name' => __('Status'),
'order_by_field' => 'State',
],
[
];
if ($this->dbi->isMariaDB()) {
$sortableColumns[] = [
'column_name' => __('Progress'),
'order_by_field' => 'Progress',
],
[
'column_name' => __('SQL query'),
'order_by_field' => 'Info',
],
];
}
$sortableColumns[] = [
'column_name' => __('SQL query'),
'order_by_field' => 'Info',
];
$sortableColCount = count($sortableColumns);

View File

@@ -75,7 +75,9 @@
<td>{{ row.command }}</td>
<td class="font-monospace text-end">{{ row.time }}</td>
<td>{{ row.state }}</td>
<td>{{ row.progress }}</td>
{% if is_mariadb %}
<td>{{ row.progress }}</td>
{% endif %}
<td>{{ row.info|raw }}</td>
{% endfor %}
</tbody>