-
Notifications
You must be signed in to change notification settings - Fork 9
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
BugFix: Fix Migration Order of Operations #1328
Conversation
Openshift URLs for the PR Deployment: |
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.
⚡
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.
LGTM
Quality Gate passedIssues Measures |
Links to Jira Tickets
n/a
Description of Changes
The audit triggers need to be created before inserting data into the lookup table (otherwise the create_user column fails the non-null constraint).
I just moved the block of audit/journal trigger sql to above the insert into method_technique sql.
These migrations ran successfully in the PR against a fresh database, which shouldn't have mattered since these tables are all brand new. But something must be different for it to fail against Dev which has existing data. Not exactly sure what the cause is at the moment.
Testing Notes
Migrations should run successfully
I did dry-run this against Dev, and it completes successfully now. Previously was failing due to the create_user non-null constraint on the method_technique table.