1
0
Fork 0
mirror of synced 2024-10-01 09:38:55 +13:00

Exclude formula columns from Sql drop column

This commit is contained in:
Mel O'Hagan 2022-09-01 17:21:42 +01:00
parent fa3f827a7d
commit 52947e4417

View file

@ -96,7 +96,9 @@ function generateSchema(
const deletedColumns = Object.entries(oldTable.schema) const deletedColumns = Object.entries(oldTable.schema)
.filter( .filter(
([key, schema]) => ([key, schema]) =>
schema.type !== FieldTypes.LINK && table.schema[key] == null schema.type !== FieldTypes.LINK &&
schema.type !== FieldTypes.FORMULA &&
table.schema[key] == null
) )
.map(([key]) => key) .map(([key]) => key)
deletedColumns.forEach(key => { deletedColumns.forEach(key => {