Update storage_management.mdx (#18385)

Handle the case in which the new `avatar_url` is set to null.
This commit is contained in:
Luca Bertelli authored and GitHub committed 2023-11-27 21:24:01 +00:00
1 parent a17ab16af7
commit 69d3482fff
1 file changed
+1 -1
@@ -64,7 +64,7 @@ declare
avatar_name text;
begin
if coalesce(old.avatar_url, '') <> ''
and (tg_op = 'DELETE' or (old.avatar_url <> new.avatar_url)) then
and (tg_op = 'DELETE' or (old.avatar_url <> coalesce(new.avatar_url, ''))) then
-- extract avatar name
avatar_name := old.avatar_url;
select