-
Notifications
You must be signed in to change notification settings - Fork 353
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
feat: Add not-null constraint for column trackedentitytypeid in trackedentity table [DHIS2-15066] #19112
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are having discussion about the approach here (that is the same for organisationunitid column in event and enrollment) and we are trying to avoid to create dummy data that are likely entering the DB and never being deleted.
I think we should fix this the same way in all the places where we found it.
As soon as we have a strategy we should go back to this PR and see what we should do.
Quality Gate passedIssues Measures |
DHIS2-15066
PR Description:
This pull request introduces a migration to enforce a
NOT NULL
constraint on thetrackedentitytypeid
column in thetrackedentity
table. The main goal is to ensure data integrity by preventing any rows from having aNULL
value in this column.Changes Made:
1. Flyway Migration Script:
Follow this incase of exception.
2. Updated test classes where applicable