From 470b5925e9951f5d1445ab9029a358cb3f58443a Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sun, 10 Nov 2024 11:29:32 +0000 Subject: [PATCH] fix: to_columns must be an array when providing a single column as a string, instead of an array the compiled sql ended up like this: ``` some_id bigint not null references "database"."schema"."table" (e, x, t, e, r, n, a, l, _, i, d), ``` adjust the example to show an array with a single element instead. --- website/docs/reference/resource-properties/constraints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-properties/constraints.md b/website/docs/reference/resource-properties/constraints.md index 63582974040..6ba20db090f 100644 --- a/website/docs/reference/resource-properties/constraints.md +++ b/website/docs/reference/resource-properties/constraints.md @@ -65,7 +65,7 @@ models: - type: unique - type: foreign_key to: ref('other_model_name') - to_columns: other_model_column + to_columns: [other_model_column] - type: ... ```