You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swap purchase readers from usdc_purchases to v_usdc_purchases
Step 2 of the purchases-domain cutover. Now that #815 (step 1) has
backfilled sol_purchases and added the compatibility view, all ~17 Go
API routes that joined usdc_purchases swap over to v_usdc_purchases.
Code changes are minimal — table-name renames in route SQL. The view
absorbs the schema differences (sol_purchases + sol_payments + users +
tracks/playlists -> legacy column shape).
Test fixtures are rewritten: callers seed sol_purchases + sol_payments
instead of usdc_purchases. Drops fixture columns the view derives
(seller_user_id, extra_amount, splits). For tests that assert on
splits user_id, the seller's spl_usdc_payout_wallet is set so the
view's lookup resolves. For tests that assert on non-zero
extra_amount, a track_price_history row is seeded so the view's
amount - base_price computation produces the expected value.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments