Skip to content

Commit

Permalink
add string methods to alter slug to fit name formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Doak authored and Rory Doak committed May 28, 2024
1 parent 29ea716 commit c717645
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
alter table "public"."flows" add column "name" text
null;
comment on column "public"."feedback"."node_data" is 'The name of the flow, entered by the user and used to generate the "slug"';
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 = slug
WHERE name IS NULL;
SET name = replace(initcap(replace(slug,'-','xax')),'xax',' ')
WHERE name IS NULL


0 comments on commit c717645

Please sign in to comment.