1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

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

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,
}
}
}