From a96182e56faa995375ad6ee08d83f0d9f667a7fb Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Wed, 3 Apr 2024 15:36:56 -0700 Subject: [PATCH] b0f048d28a5b5d5a5b16274bb4bc8b8215af3bb9 part 2 --- src/migrations/BaseContentRefactorMigration.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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(