forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix offline SQL generation of migrations (apache#44790)
* Fix offline SQL generation of migrations Offline SQL mode is broken, and this provides a fix for it, including a test to run the offline migration through the CI. Changes: - refactored the migrations to remove dependency on inspectors and sessions - Updated the minimum version of the offline migration to 2.7.0, which is the oldest migration file we have in AF 3 * fixup! Fix offline SQL generation of migrations * fixup! fixup! Fix offline SQL generation of migrations * properly handle index dropping and fix raw sql issue * sqlite lite is not supported for offline mode * remove sa.text in op.execute * check foreign key doesn't exist before creating it * Apply suggestions from code review Co-authored-by: Kaxil Naik <[email protected]> * use procedure for mysql --------- Co-authored-by: Kaxil Naik <[email protected]>
- Loading branch information
1 parent
957bd24
commit d28caa7
Showing
11 changed files
with
2,156 additions
and
1,983 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.