From df254e9dbf5998ba5d8e429af51b896eee5dfae2 Mon Sep 17 00:00:00 2001 From: jkomyno Date: Fri, 15 Nov 2024 20:44:13 +0100 Subject: [PATCH] chore(query-structure): interpret "cuid()" as "cuid(1)" --- query-engine/query-structure/src/default_value.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query-engine/query-structure/src/default_value.rs b/query-engine/query-structure/src/default_value.rs index c38f7b31a94..46095343ce2 100644 --- a/query-engine/query-structure/src/default_value.rs +++ b/query-engine/query-structure/src/default_value.rs @@ -258,8 +258,8 @@ pub enum ValueGeneratorFn { impl ValueGeneratorFn { fn new(name: &str) -> std::result::Result { match name { - "cuid" | "cuid(2)" => Ok(Self::Cuid(2)), - "cuid(1)" => Ok(Self::Cuid(1)), + "cuid" | "cuid(1)" => Ok(Self::Cuid(1)), + "cuid(2)" => Ok(Self::Cuid(2)), "uuid" | "uuid(4)" => Ok(Self::Uuid(4)), "uuid(7)" => Ok(Self::Uuid(7)), "now" => Ok(Self::Now),