Skip to content

Conversation

@youngkidwarrior
Copy link
Collaborator

Why:
Implements deposit workflow pattern to eliminate transfer activity
race conditions. The activity_id column tracks pending activities
created by the temporal trigger, enabling the indexer to directly
delete them using the activity_id reference instead of querying
by event_id/event_name.

Test plan:

  • Apply migration: supabase db push
    Expected: activity_id column added with index and FK
  • Verify schema: supabase db diff
    Expected: no differences between migration and schema file
  • Check constraint: \d temporal.send_account_transfers
    Expected: fk_transfer_activity FK to public.activity(id)

Why:
Implements deposit workflow pattern to eliminate transfer activity
race conditions. The activity_id column tracks pending activities
created by the temporal trigger, enabling the indexer to directly
delete them using the activity_id reference instead of querying
by event_id/event_name.

Test plan:
- Apply migration: supabase db push
  Expected: activity_id column added with index and FK
- Verify schema: supabase db diff
  Expected: no differences between migration and schema file
- Check constraint: \d temporal.send_account_transfers
  Expected: fk_transfer_activity FK to public.activity(id)
@github-actions
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants