Fix dropping columns existing only internally
This commit is contained in:
parent
a1b91da40f
commit
c34cd470ee
|
@ -353,6 +353,7 @@ function copyExistingPropsOver(
|
||||||
|
|
||||||
// If the db column type changed to a non-compatible one, we want to re-fetch it
|
// If the db column type changed to a non-compatible one, we want to re-fetch it
|
||||||
if (
|
if (
|
||||||
|
updatedColumnType &&
|
||||||
updatedColumnType !== existingColumnType &&
|
updatedColumnType !== existingColumnType &&
|
||||||
!SWITCHABLE_TYPES[updatedColumnType]?.includes(existingColumnType)
|
!SWITCHABLE_TYPES[updatedColumnType]?.includes(existingColumnType)
|
||||||
) {
|
) {
|
||||||
|
@ -384,7 +385,7 @@ function copyExistingPropsOver(
|
||||||
...existingTableSchema[key],
|
...existingTableSchema[key],
|
||||||
externalType:
|
externalType:
|
||||||
existingTableSchema[key].externalType ||
|
existingTableSchema[key].externalType ||
|
||||||
table.schema[key].externalType,
|
table.schema[key]?.externalType,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue