summaryrefslogtreecommitdiff
path: root/sql/functions/auth.delete_registration.sql
blob: 5adf7055040e19017059c657d4096aa6566b3b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
drop function auth.delete_registration (
    p_hash text
);

create or replace function auth.delete_registration (
    p_hash text
)
returns void
as $$
begin
    delete from auth.registrations r
    where r.hash = ('\x' || p_hash)::bytea;
end;
$$ language plpgsql;