- Fixed a bug where an empty definition would crash the migration:
This commit is contained in:
parent
e032c89fdc
commit
73fca52013
|
@ -51,7 +51,7 @@
|
|||
<div class="col"><span>📄</span> <span>{{ $item->tableName() }}</span></div>
|
||||
<div class="col">{% _ "database.table.fields", [ 'count' => count( $item->fieldList() ) ] %}</div>
|
||||
<div class="col col-grow-2">
|
||||
{% if $context->definition[$entity]['table']->modifier->query %}
|
||||
{% if $context->definition[$entity]['table']->modifier->query ?? false %}
|
||||
<code>{{= implode('<br><br>',(array) $context->definition[$entity]['table']->modifier->query) }}</code>
|
||||
{% else %}
|
||||
<div style="color:#abecab">✓ {% _ 'database.table.uptodate' %}</div>
|
||||
|
@ -59,7 +59,7 @@
|
|||
</div>
|
||||
|
||||
<div class="col">
|
||||
{% switch $context->definition[$entity]['table']->modifier->type %}
|
||||
{% switch $context->definition[$entity]['table']->modifier->type ?? false %}
|
||||
{% case ModifierTypeEnum::Create %}
|
||||
{% php $createAll[] = $entity %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue