Skip to content

Conversation

@acwhite211
Copy link
Member

@acwhite211 acwhite211 commented Nov 24, 2025

Fixes #7559

Skip on existing Splocalecontaineritem instead of Splocalecontainer. This works on the example workshop database. More testing to be done on other databases.

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list

Testing instructions

  • Add a new discipline to the database.
  • Make sure that the ve/bin/python manage.py run_key_migration_functions Django command runs before testing.
  • See that no new schema config related errors occur in the logs for Django command.
  • See that new schema config records were created for the new dicpline in the schema config viewer. Make sure to check the newer tables, like collectionobjectgroup and collectionobjecttype.

@acwhite211 acwhite211 marked this pull request as ready for review January 5, 2026 22:53
@acwhite211 acwhite211 requested a review from a team January 5, 2026 22:53
@melton-jason melton-jason self-requested a review January 15, 2026 14:07
@grantfitzsimmons grantfitzsimmons changed the base branch from main to v7.11.4-prerelease January 28, 2026 19:02
@grantfitzsimmons grantfitzsimmons changed the base branch from v7.11.4-prerelease to main January 28, 2026 19:14

const isLoanReturnLike =
isLoanReturn || (actionTable.name !== 'Loan' && actionTable.name.includes('Loan'));
isLoanReturn ||
Copy link
Member

@grantfitzsimmons grantfitzsimmons Jan 28, 2026

Choose a reason for hiding this comment

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

Why does this PR reformat this?

Copy link
Member

@grantfitzsimmons grantfitzsimmons left a comment

Choose a reason for hiding this comment

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

I have a database (shared with Alec) that is missing agent3, agent4, and agent5 in the Loan table after running ve/bin/python manage.py run_key_migration_functions. This is not handled in this PR, resulting in an incomplete schema. This fixes the missing tables and fields for 7-only tables, but not if a discipline was added after we added fields to an existing table.

@github-project-automation github-project-automation bot moved this from 📋Back Log to Dev Attention Needed in General Tester Board Jan 28, 2026
@acwhite211
Copy link
Member Author

This PR will be handled in the #7672 PR

@acwhite211 acwhite211 closed this Jan 29, 2026
@github-project-automation github-project-automation bot moved this from Dev Attention Needed to ✅Done in General Tester Board Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

run_key_migration_functions not creating schema records for new disciplines

3 participants