Add migrate-db command and support airflow downgrades#247
Merged
michaelfu1029 merged 5 commits intoaws:mainfrom May 14, 2025
Merged
Add migrate-db command and support airflow downgrades#247michaelfu1029 merged 5 commits intoaws:mainfrom
michaelfu1029 merged 5 commits intoaws:mainfrom
Conversation
kuyperse
requested changes
Apr 24, 2025
5323f1e to
bbfe2ca
Compare
fd82e08 to
2cc5526
Compare
sudiptoghosh01
previously requested changes
Apr 28, 2025
Contributor
Author
|
Unit tests are added, is only failing because did not add test for but there is already a unit test for |
kuyperse
previously approved these changes
May 9, 2025
Contributor
I believe you should cover this branch as well. Similar to what we have for other commands, please refer to this code pointer. |
kuyperse
previously approved these changes
May 13, 2025
kuyperse
approved these changes
May 13, 2025
sudiptoghosh01
approved these changes
May 14, 2025
michaelfu1029
added a commit
that referenced
this pull request
Jul 16, 2025
*Issue #, if available:* *Description of changes:* Porting this change into this 3.0.2 image #247 The 3.0.2 image was copied off an old version so it does not have the new required migrate-db command Tested by running the run script with some modifications to go into the migratedb flow By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Co-authored-by: Michael Fu <miklfu@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
Added a new command
migrate-dbfor a special container that will run the same airflow db init/upgrade logic but will also check for an environment variableMWAA__CORE__TARGET_VERSIONto downgrade. Existing inplace upgrade will not be changed for now.The migrate_with_downgrade.py file is a copy or migrate.py but with an additional downgrade check
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.