Improve indexes design in structure snapshot

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu 2026-03-04 23:05:48 +01:00
parent fdc92d6660
commit d0954d8bdc

View File

@ -1,33 +1,40 @@
<h3>{{ t('Indexes') }}</h3>
<table id="tablestructure_indexes" class="table table-striped table-hover">
<thead>
<tr>
<th>{{ t('Keyname') }}</th>
<th>{{ t('Type') }}</th>
<th>{{ t('Unique') }}</th>
<th>{{ t('Packed') }}</th>
<th>{{ t('Column') }}</th>
<th>{{ t('Cardinality') }}</th>
<th>{{ t('Collation') }}</th>
<th>{{ t('Null') }}</th>
<th>{{ t('Comment') }}</th>
</tr>
</thead>
<tbody>
{% for index in indexes %}
<tr class="noclick">
<td>
<strong>{{ index['Key_name'] }}</strong>
</td>
<td>{{ index['Index_type'] }}</td>
<td>{{ index['Non_unique'] == 0 ? t('Yes') : t('No') }}</td>
<td>{{ index['Packed'] != '' ? t('Yes') : t('No') }}</td>
<td>{{ index['Column_name'] }}</td>
<td>{{ index['Cardinality'] }}</td>
<td>{{ index['Collation'] }}</td>
<td>{{ index['Null'] }}</td>
<td>{{ index['Comment'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="card">
<div class="card-header">
{{ t('Indexes') }}
{{ show_mysql_docu('optimizing-database-structure') }}
</div>
<div class="card-body">
<table id="tablestructure_indexes" class="table table-striped table-hover w-auto">
<thead>
<tr>
<th>{{ t('Keyname') }}</th>
<th>{{ t('Type') }}</th>
<th>{{ t('Unique') }}</th>
<th>{{ t('Packed') }}</th>
<th>{{ t('Column') }}</th>
<th>{{ t('Cardinality') }}</th>
<th>{{ t('Collation') }}</th>
<th>{{ t('Null') }}</th>
<th>{{ t('Comment') }}</th>
</tr>
</thead>
<tbody>
{% for index in indexes %}
<tr class="noclick">
<td>
<strong>{{ index['Key_name'] }}</strong>
</td>
<td>{{ index['Index_type'] }}</td>
<td>{{ index['Non_unique'] == 0 ? t('Yes') : t('No') }}</td>
<td>{{ index['Packed'] != '' ? t('Yes') : t('No') }}</td>
<td>{{ index['Column_name'] }}</td>
<td>{{ index['Cardinality'] }}</td>
<td>{{ index['Collation'] }}</td>
<td>{{ index['Null'] }}</td>
<td>{{ index['Comment'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>