Exclude formula columns from Sql drop column
This commit is contained in:
parent
206870b520
commit
b29e9be026
|
@ -96,7 +96,9 @@ function generateSchema(
|
|||
const deletedColumns = Object.entries(oldTable.schema)
|
||||
.filter(
|
||||
([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)
|
||||
deletedColumns.forEach(key => {
|
||||
|
|
Loading…
Reference in New Issue