diff --git a/src/migrations/BaseContentRefactorMigration.php b/src/migrations/BaseContentRefactorMigration.php index 2cbf3845db7..5652867578a 100644 --- a/src/migrations/BaseContentRefactorMigration.php +++ b/src/migrations/BaseContentRefactorMigration.php @@ -234,10 +234,13 @@ private function findColumnsForField( array &$fieldColumns, array &$flatFieldColumns, ): bool { - $dbType = $field::dbType(); - - if ($dbType === null) { - return false; + if ($field instanceof MissingField) { + $dbType = Schema::TYPE_TEXT; + } else { + $dbType = $field::dbType(); + if ($dbType === null) { + return false; + } } $primaryColumn = sprintf(