fix: change LOWER to HIGHER

This commit is contained in:
Maël Gangloff
2025-11-08 23:54:24 +01:00
parent aa8bdc2a32
commit 46bd8165ed

View File

@@ -69,7 +69,7 @@ class Entity
type: 'string',
insertable: false,
updatable: false,
columnDefinition: "VARCHAR(255) GENERATED ALWAYS AS (LOWER(jsonb_path_query_first(j_card, '$[1]?(@[0] == \"fn\")[3]') #>> '{}')) STORED",
columnDefinition: "VARCHAR(255) GENERATED ALWAYS AS (UPPER(jsonb_path_query_first(j_card, '$[1]?(@[0] == \"fn\")[3]') #>> '{}')) STORED",
generated: 'ALWAYS',
)]
private ?string $jCardFn;
@@ -78,7 +78,7 @@ class Entity
type: 'string',
insertable: false,
updatable: false,
columnDefinition: "VARCHAR(255) GENERATED ALWAYS AS (LOWER(jsonb_path_query_first(j_card, '$[1]?(@[0] == \"org\")[3]') #>> '{}')) STORED",
columnDefinition: "VARCHAR(255) GENERATED ALWAYS AS (UPPER(jsonb_path_query_first(j_card, '$[1]?(@[0] == \"org\")[3]') #>> '{}')) STORED",
generated: 'ALWAYS',
)]
private ?string $jCardOrg;