Skip to content
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

Merged
merged 7 commits into from
Jul 22, 2024
Merged

Conversation

NickPhura
Copy link
Collaborator

@NickPhura NickPhura commented Jul 20, 2024

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.

@NickPhura NickPhura added the Ready For Review PR is ready for review label Jul 22, 2024
@NickPhura NickPhura self-assigned this Jul 22, 2024
MacQSL
MacQSL previously approved these changes Jul 22, 2024
Copy link
Collaborator

@MacQSL MacQSL left a comment

Choose a reason for hiding this comment

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

Copy link
Collaborator

@MacQSL MacQSL left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

sonarcloud bot commented Jul 22, 2024

@NickPhura NickPhura merged commit 2eb5eac into dev Jul 22, 2024
20 checks passed
@NickPhura NickPhura deleted the npBugFix_Technique_Migration branch July 22, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants