mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-28 22:01:33 +00:00
Update utils.sql
This commit is contained in:
parent
87e86825f4
commit
dbeffbc7f1
1 changed files with 7 additions and 0 deletions
|
@ -57,6 +57,13 @@ BEGIN
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
CREATE FUNCTION r.local_url (url_path text)
|
||||||
|
RETURNS text
|
||||||
|
LANGUAGE sql
|
||||||
|
STABLE PARALLEL SAFE
|
||||||
|
RETURN (
|
||||||
|
current_setting ('lemmy.protocol_and_hostname') || url_path)
|
||||||
|
|
||||||
-- This function creates statement-level triggers for all operation types. It's designed this way
|
-- This function creates statement-level triggers for all operation types. It's designed this way
|
||||||
-- because of these limitations:
|
-- because of these limitations:
|
||||||
-- * A trigger that uses transition tables can only handle 1 operation type.
|
-- * A trigger that uses transition tables can only handle 1 operation type.
|
||||||
|
|
Loading…
Reference in a new issue