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

chore(CodeNotes): implement schema TODOs and add foreign key to game_id #2540

Merged

Conversation

wescopeland
Copy link
Member

Before running the migration, execute this SQL:

DELETE FROM CodeNotes
WHERE GameID NOT IN (SELECT ID FROM GameData)

This PR is prep work for the ultimate migration of code notes management into Filament. Gets nearly all of the model's TODOs out of the way and adds a foreign key to game_id. Even though we ultimately plan on dropping the column, as long as it's there, it should be bound to GameData.ID to ensure data integrity.

@wescopeland wescopeland requested a review from a team July 3, 2024 21:49
@wescopeland wescopeland added the deployment/sql Includes SQL that needs to be run before/after deployment label Jul 3, 2024
@wescopeland wescopeland merged commit fb232af into RetroAchievements:master Jul 21, 2024
5 checks passed
@wescopeland wescopeland deleted the memory-notes-migration branch July 21, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment/sql Includes SQL that needs to be run before/after deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants