{% trans 'Indexes' %} {{ show_mysql_docu('optimizing-database-structure') }} {% if indexes is not empty %} {{ indexes_duplicates|raw }}
{% for index in indexes %} {% set columns_count = index.getColumnCount() %} {% for column in index.getColumns() %} {% if column.getSeqInIndex() > 1 %} {% endif %} {% if column.getSeqInIndex() == 1 %} {% endif %} {% endfor %} {% endfor %}
{% trans 'Action' %} {% trans 'Keyname' %} {% trans 'Type' %} {% trans 'Unique' %} {% trans 'Packed' %} {% trans 'Column' %} {% trans 'Cardinality' %} {% trans 'Collation' %} {% trans 'Null' %} {% trans 'Comment' %}
{{ index.getName() }} {{ index.getType()|default(index.getChoice()) }} {{ index.isUnique() ? 'Yes'|trans : 'No'|trans }} {{ index.isPacked()|raw }}
{{ column.getName() }} {% if column.getSubPart() is not empty %} ({{ column.getSubPart() }}) {% endif %} {{ column.getCardinality() }} {{ column.getCollation() }} {{ column.getNull(true) }}{{ index.getComments() }}
{% else %}
{{ 'No index defined!'|trans|notice }}
{% endif %}