Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ddl/views/v_usdc_purchases.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SELECT
sp.content_type::usdc_purchase_content_type AS content_type,
sp.content_id,
sp.created_at,
sp.created_at AS updated_at,
GREATEST(
sp.amount - COALESCE(
CASE sp.content_type
Expand Down
1 change: 1 addition & 0 deletions sql/01_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9631,6 +9631,7 @@ CREATE VIEW public.v_usdc_purchases AS
(sp.content_type)::public.usdc_purchase_content_type AS content_type,
sp.content_id,
sp.created_at,
sp.created_at AS updated_at,
GREATEST((sp.amount - COALESCE(
CASE sp.content_type
WHEN 'track'::text THEN ( SELECT (tph.total_price_cents * 10000)
Expand Down
Loading