-
Notifications
You must be signed in to change notification settings - Fork 0
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
DDO-3269: Environment V3 SQL Migrations #356
Conversation
No API changes detected |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #356 +/- ##
==========================================
+ Coverage 68.50% 68.52% +0.02%
==========================================
Files 157 157
Lines 10253 10250 -3
==========================================
Hits 7024 7024
+ Misses 2742 2740 -2
+ Partials 487 486 -1
|
…-enviornment-sql-migration
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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!
We want to add the environment type to sherlock v3. This PR is doing the database migrations for that table based off of this function from the deprecated model.
Testing
I tested this locally by
starting up my local Sherlock. Doing this will run all the migrations and fail if there are any errors.
using the golang-migrate/migrate tool to test run my up and down migrations. I used
migrate -path sherlock/db/migrations -database 'postgres://sherlock:password@localhost:5432/sherlock?sslmode=disable' goto 61
and
migrate -path sherlock/db/migrations -database 'postgres://sherlock:password@localhost:5432/sherlock?sslmode=disable' goto 62
to test down and up, respectively.