{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as helper %} {% block toolbar %} {% set unavailable_migrations = collector.data.unavailable_migrations|length %} {% set new_migrations = collector.data.new_migrations|length %} {% if unavailable_migrations > 0 or new_migrations > 0 %} {% set executed_migrations = collector.data.executed_migrations|length %} {% set available_migrations = collector.data.available_migrations|length %} {% set status_color = unavailable_migrations > 0 ? 'yellow' : '' %} {% set status_color = new_migrations > 0 ? 'red' : status_color %} {% set icon %} {{ include('@DoctrineMigrations/Collector/icon.svg') }} {{ new_migrations + unavailable_migrations }} {% endset %} {% set text %}
Current {{ executed_migrations > 0 ? collector.data.executed_migrations|last.version|split('\\')|last : 'n/a' }}
Executed {{ executed_migrations }}
Executed Unavailable {{ unavailable_migrations }}
Available {{ available_migrations }}
New {{ new_migrations }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }} {% endif %} {% endblock %} {% block menu %} {% set unavailable_migrations = collector.data.unavailable_migrations|length %} {% set new_migrations = collector.data.new_migrations|length %} {% set label = unavailable_migrations > 0 ? 'label-status-warning' : '' %} {% set label = new_migrations > 0 ? 'label-status-error' : label %} {{ include('@DoctrineMigrations/Collector/icon.svg') }} Migrations {% if unavailable_migrations > 0 or new_migrations > 0 %} {{ new_migrations + unavailable_migrations }} {% endif %} {% endblock %} {% block panel %}

Doctrine Migrations

{{ collector.data.executed_migrations|length }} Executed
{{ collector.data.unavailable_migrations|length }} Executed Unavailable
{{ collector.data.available_migrations|length }} Available
{{ collector.data.new_migrations|length }} New

Configuration

{% if collector.data.table is defined %} {% endif %} {% if collector.data.column is defined %} {% endif %}
Storage
Type {{ collector.data.storage }}
Table Name {{ collector.data.table }}
Column Name {{ collector.data.column }}
Database
Driver {{ collector.data.driver }}
Name {{ collector.data.name }}
{% for namespace, directory in collector.data.namespaces %} {% endfor %}
Migration Namespaces
{{ namespace }} {{ directory }}

Migrations

{% for migration in collector.data.new_migrations %} {{ helper.render_migration(migration) }} {% endfor %} {% for migration in collector.data.executed_migrations|reverse %} {{ helper.render_migration(migration) }} {% endfor %}
Version Description Status Executed at Execution time
{% endblock %} {% macro render_migration(migration) %} {% if migration.file %} {{ migration.version }} {% else %} {{ migration.version }} {% endif %} {{ migration.description }} {% if migration.is_new %} NOT EXECUTED {% elseif migration.is_unavailable %} UNAVAILABLE {% else %} EXECUTED {% endif %} {{ migration.executed_at ? migration.executed_at|date : 'n/a' }} {{ migration.execution_time|default('n/a') }} {% endmacro %}