Skip to content

Replace migratedb with initdb for database initialization #224

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

golamhisham
Copy link

This PR replaces the migratedb call with initdb in migrate.py to ensure the default behavior of Airflow database initialization is used.

This is my first open-source contribution!

@MazrimT
Copy link

MazrimT commented Mar 4, 2025

initdb is depricated with the following DepricationWarning:

"`db init` is deprecated.  Use `db migrate` instead to migrate the db and/or "
"airflow connections create-default-connections to create the default connections",

@FrancisLee13
Copy link
Contributor

As mentioned in issue#223, we should only change this for next version release, not the existing versions.

initdb is depricated with the following DepricationWarning

I was thinking of calling initdb in airflow/utils/db.py, which doesn't have deprecation warning. Although I am not sure if that is also on deprecation path as well and just not marked yet. We should decide when we are working on the next airflow version.

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.

3 participants