Merge pull request #9923 from Budibase/fix/9790
SQL formulas - keeping after fetching
This commit is contained in:
commit
5d166421bf
|
@ -223,14 +223,15 @@ function shouldCopySpecialColumn(
|
||||||
column: { type: string },
|
column: { type: string },
|
||||||
fetchedColumn: { type: string } | undefined
|
fetchedColumn: { type: string } | undefined
|
||||||
) {
|
) {
|
||||||
|
const isFormula = column.type === FieldTypes.FORMULA
|
||||||
const specialTypes = [
|
const specialTypes = [
|
||||||
FieldTypes.OPTIONS,
|
FieldTypes.OPTIONS,
|
||||||
FieldTypes.LONGFORM,
|
FieldTypes.LONGFORM,
|
||||||
FieldTypes.ARRAY,
|
FieldTypes.ARRAY,
|
||||||
FieldTypes.FORMULA,
|
FieldTypes.FORMULA,
|
||||||
]
|
]
|
||||||
// column has been deleted, remove
|
// column has been deleted, remove - formulas will never exist, always copy
|
||||||
if (column && !fetchedColumn) {
|
if (!isFormula && column && !fetchedColumn) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const fetchedIsNumber =
|
const fetchedIsNumber =
|
||||||
|
|
Loading…
Reference in New Issue