Skip to content

Commit

Permalink
alter population script to format slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Doak authored and Rory Doak committed May 29, 2024
1 parent e82bcd6 commit 499e31b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit 499e31b

Please sign in to comment.