Skip to content

Commit

Permalink
b0f048d part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 3, 2024
1 parent e43933d commit a96182e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/migrations/BaseContentRefactorMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a96182e

Please sign in to comment.