Allow bb_refs to externals

This commit is contained in:
Adria Navarro 2023-09-14 17:51:03 +02:00
parent 2c715f5144
commit 8564509ca9
2 changed files with 4 additions and 0 deletions

View File

@ -396,6 +396,9 @@
if (!external || table.sql) {
fields = [...fields, FIELDS.LINK, FIELDS.ARRAY]
}
if (fieldDefinitions.USER) {
fields.push(fieldDefinitions.USER)
}
return fields
}
}

View File

@ -41,6 +41,7 @@ function generateSchema(
case FieldTypes.OPTIONS:
case FieldTypes.LONGFORM:
case FieldTypes.BARCODEQR:
case FieldTypes.BB_REFERENCE:
schema.text(key)
break
case FieldTypes.NUMBER: