From 7f435cf657d324d744408c8a5355be200d04a160 Mon Sep 17 00:00:00 2001 From: Dull Bananas Date: Tue, 25 Jun 2024 18:57:09 +0000 Subject: [PATCH] pg_format --- crates/db_schema/replaceable_schema/triggers.sql | 6 +++--- crates/db_schema/replaceable_schema/utils.sql | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/db_schema/replaceable_schema/triggers.sql b/crates/db_schema/replaceable_schema/triggers.sql index c6b2fdba8..973d3325f 100644 --- a/crates/db_schema/replaceable_schema/triggers.sql +++ b/crates/db_schema/replaceable_schema/triggers.sql @@ -566,7 +566,7 @@ BEGIN END IF; -- Set local ap_id IF NEW.local THEN - NEW.ap_id = coalesce(NEW.ap_id, r.local_url('/comment/' || id)); + NEW.ap_id = coalesce(NEW.ap_id, r.local_url ('/comment/' || id)); END IF; RETURN NEW; END @@ -584,7 +584,7 @@ CREATE FUNCTION r.post_change_values () BEGIN -- Set local ap_id IF NEW.local THEN - NEW.ap_id = coalesce(NEW.ap_id, r.local_url('/post/' || NEW.id::text)); + NEW.ap_id = coalesce(NEW.ap_id, r.local_url ('/post/' || NEW.id::text)); END IF; RETURN NEW; END @@ -602,7 +602,7 @@ CREATE FUNCTION r.private_message_change_values () BEGIN -- Set local ap_id IF NEW.local THEN - NEW.ap_id = coalesce(NEW.ap_id, r.local_url('/private_message/' || NEW.id::text)); + NEW.ap_id = coalesce(NEW.ap_id, r.local_url ('/private_message/' || NEW.id::text)); END IF; RETURN NEW; END diff --git a/crates/db_schema/replaceable_schema/utils.sql b/crates/db_schema/replaceable_schema/utils.sql index 528862c27..e17890414 100644 --- a/crates/db_schema/replaceable_schema/utils.sql +++ b/crates/db_schema/replaceable_schema/utils.sql @@ -60,9 +60,9 @@ $$; CREATE FUNCTION r.local_url (url_path text) RETURNS text LANGUAGE sql - STABLE PARALLEL SAFE - RETURN ( - current_setting ('lemmy.protocol_and_hostname') || url_path); + 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 -- because of these limitations: