modify sql functions

This commit is contained in:
2024-11-11 20:20:49 +01:00
parent e5a7906cdf
commit 9af2a9408c
12 changed files with 159 additions and 59 deletions

View File

@ -1,4 +1,6 @@
CREATE OR REPLACE FUNCTION website_exists(in_website_name text) RETURNS boolean AS $$
CREATE OR REPLACE FUNCTION public.website_exists(in_website_name text) RETURNS boolean
LANGUAGE plpgsql STRICT
AS $$
BEGIN
PERFORM * FROM website w
WHERE w.name = in_website_name;
@ -9,4 +11,4 @@ BEGIN
RETURN 0;
END IF;
END;
$$ LANGUAGE plpgsql STRICT;
$$;