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

fix: added migration file to fix discrepancies #1765

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

franTarkenton
Copy link
Member

@franTarkenton franTarkenton commented Dec 3, 2024

Description

Includes a migration file that will result in new databases created from the migrations to have the same structure as what is currently implemented in our physical TEST / PROD databases. The migration has conditionals attached which should prevent the existing database from being modified.

Closes #1764

Changelog

New

  • new migration file

Changed

Removed

How was this tested?

  • 🧠 Not needed
  • 👀 Eyeball
  • 🤖 Added tests

Tested by running net new migration using local env. Confirmed that this has the same structure as what exists in the physical implementations of TEST / PROD (spar2). Then deleted the V46 record from the flyway migration table and re-ran the migrations. This simulates the conditions for running this migration on the physical db's TEST / PROD. Verified that the migrations did not crash or otherwise alter the structure of the tables.

What gif/image best describes this PR or how it makes you feel?


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Copy link
Member

@DerekRoberts DerekRoberts left a comment

Choose a reason for hiding this comment

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

Great! Let's see this in action. :)

@franTarkenton franTarkenton force-pushed the feat/1764-db-migration-fix branch from 9703876 to 2af5faf Compare December 4, 2024 23:11
@franTarkenton franTarkenton enabled auto-merge (squash) December 4, 2024 23:12
@franTarkenton franTarkenton merged commit cf243c5 into main Dec 4, 2024
29 checks passed
@franTarkenton franTarkenton deleted the feat/1764-db-migration-fix branch December 4, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix discrepancy between physical database and migration definitions
3 participants