Fix dropping columns existing only internally

This commit is contained in:
Adria Navarro 2024-04-19 11:05:36 +02:00
parent a1b91da40f
commit c34cd470ee
1 changed files with 2 additions and 1 deletions

View File

@ -353,6 +353,7 @@ function copyExistingPropsOver(
// If the db column type changed to a non-compatible one, we want to re-fetch it
if (
updatedColumnType &&
updatedColumnType !== existingColumnType &&
!SWITCHABLE_TYPES[updatedColumnType]?.includes(existingColumnType)
) {
@ -384,7 +385,7 @@ function copyExistingPropsOver(
...existingTableSchema[key],
externalType:
existingTableSchema[key].externalType ||
table.schema[key].externalType,
table.schema[key]?.externalType,
}
}
}