From 99ac8584a39c26ed524599b1910b172b83c57271 Mon Sep 17 00:00:00 2001 From: mscherer Date: Wed, 11 Mar 2026 20:43:45 +0100 Subject: [PATCH] Filter out null fixed option from generated migrations When generating migrations, the 'fixed' option could be set to null for binary columns, which causes an error when running the migration because Column::setFixed() expects a bool, not null. Fixes #1046 --- src/View/Helper/MigrationHelper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/View/Helper/MigrationHelper.php b/src/View/Helper/MigrationHelper.php index 75e04cbb..b0014f7c 100644 --- a/src/View/Helper/MigrationHelper.php +++ b/src/View/Helper/MigrationHelper.php @@ -401,6 +401,10 @@ public function getColumnOption(array $options): array if (empty($columnOptions['collate'])) { unset($columnOptions['collate']); } + // isset() returns false for null values, so this handles both missing and null cases + if (!isset($columnOptions['fixed'])) { + unset($columnOptions['fixed']); + } // currently only MySQL supports the signed option $driver = $connection->getDriver();