Repository navigation
Conversation
Part of #150, as decided there: - Drop entity_image, entity_member, game_author and reset_token, and game.tag_list, game_event.tags, person.github_id, steam_id and password_hash (passwords are dropped: sign-in moves to Bluesky). - Remove the sign-up, forgot and reset routes, their forms and password inputs, SendGrid, and the GitHub profile links (no GitHub sign-in). - Org deletion no longer clears members; /admin/missing lists games without studios. - Add entity.status (#39: active, closed, hiatus; default active) and game_entity.role (#40: developer, co_developer, publisher, porting, support; default developer). UI follows. - Index foreign keys and filtered columns. The migration drops with IF EXISTS / CASCADE so it doesn't depend on production's constraint names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 4, 2026
Contributor
Author
|
Superseded by #249, which merged this change into main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #150, stage 1 of 5: removals, indexes, and the #39 and #40 fields. Decisions are recorded on #150.
Removed
entity_image,entity_member,game_author,reset_token.game.tag_list,game_event.tags,person.github_id,person.steam_id,person.password_hash./signup,/forgotand/reset/:tokenroutes;SignupForm(and its story),ForgotForm,PasswordResetForm,PasswordChangeForm, both password inputs, andemail.server.js;@sendgrid/maildependency;computePerson's call to the GitHub API. There was never a GitHub sign-in./admin/missinglists games without studios, since no game had authors.Dropping
password_hashalso makes the leaked hashes from GHSA-297v-vhxj-rvqg useless once this is deployed.Added
entity.status(Org status / years of activity #39):active,closedorhiatus, defaulting toactive.game_entity.role(Add how an organization is involved in game prod #40):developer,co_developer,publisher,portingorsupport, defaulting todeveloper.Schema only for now; the forms and filters follow on #39, #40 and #211.
Indexes: on foreign keys and filtered columns, which Postgres doesn't create on its own. For example
event(starts_at),entity(type),location(country_code),game(deleted),change(table_name, record_id), and the join tables' second keys.Migration
20261004100000_schema_cleanup_stage_1, generated withprisma migrate diffand reviewed.DROP TABLE … CASCADEandIF EXISTS, so it doesn't depend on production's constraint names.prisma format, so open PRs touching other models (Merge duplicate tags and normalise tags on input #234, Show and enter event times in the event's own time zone #240) don't conflict.Before deploying, on production or on the dump, check what will be dropped:
Back up first.
Tests
🤖 Generated with Claude Code