MarseyWorld/migrations/20230511-add-lifetime-donat...

8 lines
216 B
MySQL
Raw Normal View History

2023-05-11 14:03:51 +00:00
create function public.lifetimedonated(public.users) returns integer
2023-05-11 13:57:49 +00:00
language sql immutable strict
as $_$
select sum(amount)
from transactions
where transactions.email = $1.email
$_$;