Skip to content

Migrate and uplink registration ID to bigint#13963

Merged
gregorbg merged 1 commit intothewca:mainfrom
gregorbg:cleanup/rce-to-reg-foreign-key
May 4, 2026
Merged

Migrate and uplink registration ID to bigint#13963
gregorbg merged 1 commit intothewca:mainfrom
gregorbg:cleanup/rce-to-reg-foreign-key

Conversation

@gregorbg
Copy link
Copy Markdown
Member

@gregorbg gregorbg commented Apr 8, 2026

The original idea was to "just" add a foreign key from RCE to registrations. Then I discovered two problems:

  • registrations has a (very) non-standard ID type
  • There are ~370K orphaned rows in RCE which need to be cleaned before the FK can be added

@gregorbg
Copy link
Copy Markdown
Member Author

gregorbg commented Apr 8, 2026

Sanity check query: SELECT * FROM registration_competition_events WHERE registration_id NOT IN (SELECT id FROM registrations);

@gregorbg gregorbg marked this pull request as draft April 8, 2026 13:09
@gregorbg gregorbg force-pushed the cleanup/rce-to-reg-foreign-key branch from 40da432 to b5e772b Compare April 28, 2026 11:18
@gregorbg gregorbg marked this pull request as ready for review May 4, 2026 12:11
@gregorbg
Copy link
Copy Markdown
Member Author

gregorbg commented May 4, 2026

Manually executed and registered on Prod

@gregorbg gregorbg merged commit 570b6bc into thewca:main May 4, 2026
2 checks passed
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.

1 participant