From 73fca52013bca4ecff8671b68ad446a9f3eea78c Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 1 Nov 2024 16:14:52 -0400 Subject: [PATCH] - Fixed a bug where an empty definition would crash the migration: --- view/lean-console/page/storage/database.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/lean-console/page/storage/database.phtml b/view/lean-console/page/storage/database.phtml index 983c090..634d0cc 100644 --- a/view/lean-console/page/storage/database.phtml +++ b/view/lean-console/page/storage/database.phtml @@ -51,7 +51,7 @@
📄 {{ $item->tableName() }}
{% _ "database.table.fields", [ 'count' => count( $item->fieldList() ) ] %}
- {% if $context->definition[$entity]['table']->modifier->query %} + {% if $context->definition[$entity]['table']->modifier->query ?? false %} {{= implode('

',(array) $context->definition[$entity]['table']->modifier->query) }}
{% else %}
✓ {% _ 'database.table.uptodate' %}
@@ -59,7 +59,7 @@
- {% switch $context->definition[$entity]['table']->modifier->type %} + {% switch $context->definition[$entity]['table']->modifier->type ?? false %} {% case ModifierTypeEnum::Create %} {% php $createAll[] = $entity %}