-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Add airflow db autogenerate
command for generating migration files
#39576
Conversation
This PR customizes the alembic autogenerate command. The DB is reset using the migration files helping to determine new additions in the ORM accurately
Should we add description about it to https://github.com/apache/airflow/blob/main/contributing-docs/13_metadata_database_updates.rst ? I think that one needs a bit more love and describe the process of adding migration scripts in a bit more detail for anyone who wants to do it ? |
Should this be an |
Yep. Breeze command would seem most appropriate. |
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.
Nice one!
This helps to generate alembic migration file for ORM changes. Closes: apache#39576
This helps to generate alembic migration file for ORM changes. Closes: apache#39576
* Add `breeze generate-migration-file` command This helps to generate alembic migration file for ORM changes. Closes: apache#39576 * fixup! Add `breeze generate-migration-file` command
* Add `breeze generate-migration-file` command This helps to generate alembic migration file for ORM changes. Closes: apache#39576 * fixup! Add `breeze generate-migration-file` command
This PR customizes the alembic autogenerate command. The DB is reset using the migration files helping to determine new additions in the ORM accurately