From 3ee95938c3bc1713b895e872469e8c7f80da258b Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 14 Sep 2023 17:51:03 +0200 Subject: [PATCH] Allow bb_refs to externals --- .../backend/DataTable/modals/CreateEditColumn.svelte | 3 +++ packages/server/src/integrations/base/sqlTable.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index dad5660c8e..62cd7e413e 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -396,6 +396,9 @@ if (!external || table.sql) { fields = [...fields, FIELDS.LINK, FIELDS.ARRAY] } + if (fieldDefinitions.USER) { + fields.push(fieldDefinitions.USER) + } return fields } } diff --git a/packages/server/src/integrations/base/sqlTable.ts b/packages/server/src/integrations/base/sqlTable.ts index 47b09dadee..4383167f4a 100644 --- a/packages/server/src/integrations/base/sqlTable.ts +++ b/packages/server/src/integrations/base/sqlTable.ts @@ -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: