mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Update storage_management.mdx (#18385)
Handle the case in which the new `avatar_url` is set to null.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user