Skip to content
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

feat: Add puzzle ID to users table #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AshCorr
Copy link
Member

@AshCorr AshCorr commented Feb 25, 2025

What does this change?

Adds the puzzle_id column to the Gatehouse users table. We originally skipped this column in the initial schema as it wasn't being used, however a new usecase has popped up so now we're adding it.

How to test

Run migrations locally and verify that CI passes.

@AshCorr AshCorr requested a review from a team as a code owner February 25, 2025 15:39
@AshCorr AshCorr force-pushed the ash/add-puzzle-id-column branch from 1c1b42a to 0e69df5 Compare February 25, 2025 15:47
END;
$$;

UPDATE users SET puzzle_id = gu_puzzle_id(private_uuid);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we want to do backfills directly in the migration files.
I know in this case it probably won't cause problems because a) we don't have prod data yet and b) we are still running these manually.

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