Skip to content

Add foreign key to autoProcProgramId in AutoProc#322

Merged
gfrn merged 1 commit intomainfrom
autoproc-fk
Apr 23, 2026
Merged

Add foreign key to autoProcProgramId in AutoProc#322
gfrn merged 1 commit intomainfrom
autoproc-fk

Conversation

@gfrn
Copy link
Copy Markdown
Contributor

@gfrn gfrn commented Apr 23, 2026

Because autoProcProgramId is not a foreign key, SQLAlchemy generated models fail to build relationships, and the right checks aren't performed when inserting. This turns autoProcProgramId into a FK.

@gfrn gfrn requested a review from ndg63276 April 23, 2026 12:54
@gfrn gfrn added the bug Something isn't working label Apr 23, 2026
Copy link
Copy Markdown
Collaborator

@ndg63276 ndg63276 left a comment

Choose a reason for hiding this comment

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

Looks good, it is already a foreign key on prod anyway

@gfrn
Copy link
Copy Markdown
Contributor Author

gfrn commented Apr 23, 2026

Oh yeah, it just doesn't get listed as one
image
So this is just to bring it in line with what it actually is!

@gfrn gfrn merged commit 04c3270 into main Apr 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants