Conversation
Adds nullable, unique, indexed orcid_id column (String(20)) to the users table for ORCID iD storage. Includes format validation (XXXX-XXXX-XXXX-XXXX with optional X checksum) via @validates decorator and standalone function. 14 tests covering validation, uniqueness, NULL handling, and backward compat. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The orcid_id migration shared revision ID a1b2c3d4e5f6 with the slug/publication_year migration, causing 'Multiple head revisions' error during CI. Assign unique revision ID 596bb368fc0d. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploy Previewhttps://scroll-press-pr-38.fly.dev This preview will be destroyed when the PR is closed. |
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.
Summary
orcid_idcolumn (String(20), nullable, unique, indexed) to theuserstable@validatesdecorator and standalonevalidate_orcid_id()function (XXXX-XXXX-XXXX-XXXX, last char may be X checksum)a1b2c3d4e5f6adds the column with unique indexTest plan
validate_orcid_id()pure function (8 tests)Closes prs-614.1
🤖 Generated with Claude Code