36 lines
1.2 KiB
Twig
36 lines
1.2 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Hello IndexController!{% endblock %}
|
|
|
|
{% block body %}
|
|
<ul>
|
|
{% for table in schemaManager.listTables %}
|
|
<li>
|
|
{{ table.name }}
|
|
|
|
<ul>
|
|
{% for column in schemaManager.listTableColumns(table.name) %}
|
|
<li>{{ column.name }} ({{ column.type.name }})</li>
|
|
{% endfor %}
|
|
|
|
<li>FK
|
|
<ul>
|
|
{% for fk in schemaManager.listTableForeignKeys(table.name) %}
|
|
<li>{{ fk.name ?? '??' }} ({{ fk.columns|join }}) -> {{ fk.getForeignTableName() }}({{ fk.getForeignColumns()|join }})</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
|
|
<li>IX
|
|
<ul>
|
|
{% for fk in schemaManager.listTableIndexes(table.name) %}
|
|
<li>{{ fk.name }} ({{ fk.columns|join }})</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock %}
|