chore(*.psql/*.sql): update all *.psql to *.sql files
This commit is contained in:
parent
c9015a7f2b
commit
fc37600b8b
63 changed files with 21 additions and 41 deletions
6
queries/functions/slugify.sql
Normal file
6
queries/functions/slugify.sql
Normal file
|
@ -0,0 +1,6 @@
|
|||
CREATE OR REPLACE FUNCTION slugify(input TEXT)
|
||||
RETURNS TEXT AS $$
|
||||
BEGIN
|
||||
RETURN lower(regexp_replace(unaccent(regexp_replace(input, '[^\w\s-]', '', 'g')), '\s+', '-', 'g'));
|
||||
END;
|
||||
$$ LANGUAGE plpgsql IMMUTABLE;
|
Loading…
Add table
Add a link
Reference in a new issue