Skip to content

Update migrations #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

Conversation

VishakhaSainani-Josh
Copy link
Collaborator

@VishakhaSainani-Josh VishakhaSainani-Josh commented Jun 30, 2025

Update migrations-

  1. Add Column contributors url in repositories table
  2. . Allow null values for contribution id in transaction table. As transaction contains both redeemed and gained transactions so contribution id will be null for redeemed one.
  3. Need to add column github_event_id in contributions table to use the gh archive contribution id for querying instead of usernames.
  4. Set Not null constraint for contributors_url in repositories table
  5. Set Not null constraint for github_event_id in contributions table.

Please review all migration related changes in this PR

…y service (in future this will be a cron job that will be scheduled to run daily)
@VishakhaSainani-Josh VishakhaSainani-Josh changed the title Update migrations- add gh event id Update migrations Jul 1, 2025
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