diff --git a/hasura.planx.uk/migrations/1716902907392_alter_table_public_flows_add_column_name/up.sql b/hasura.planx.uk/migrations/1716902907392_alter_table_public_flows_add_column_name/up.sql index 5352946d88..349ee9274e 100644 --- a/hasura.planx.uk/migrations/1716902907392_alter_table_public_flows_add_column_name/up.sql +++ b/hasura.planx.uk/migrations/1716902907392_alter_table_public_flows_add_column_name/up.sql @@ -3,7 +3,7 @@ alter table "public"."flows" add column "name" text comment on column "public"."flows"."name" is 'The name of the flow, entered by the user and used to generate the "slug"'; UPDATE flows -SET name = replace(initcap(replace(slug,'-','xax')),'xax',' ') +SET name = replace(concat(upper(substring(slug,1,1)),right(slug,-1)),'-',' ') WHERE name IS NULL