Skip to content

Commit

Permalink
chore(query-structure): interpret "cuid()" as "cuid(1)"
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 15, 2024
1 parent e902e3a commit df254e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions query-engine/query-structure/src/default_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ pub enum ValueGeneratorFn {
impl ValueGeneratorFn {
fn new(name: &str) -> std::result::Result<Self, String> {
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),
Expand Down

0 comments on commit df254e9

Please sign in to comment.