Skip to content
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

Remove deprecated cli commands from the db group #44706

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

jedcunningham
Copy link
Member

@jedcunningham jedcunningham commented Dec 5, 2024

I've added these to the "legacy commands" list, so Airflow will return a
helpful error message if someone does run them.

e.g.

$ airflow db upgrade
Usage: airflow db [-h] COMMAND ...

Database operations

Positional Arguments:
  COMMAND
    check             Check if the database can be reached
    check-migrations  Check if migration have finished
    clean             Purge old records in metastore tables
    downgrade         Downgrade the schema of the metadata database.
    drop-archived     Drop archived tables created through the db clean command
    export-archived   Export archived data from the archive tables
    migrate           Migrates the metadata database to the latest version
    reset             Burn down and rebuild the metadata database
    shell             Runs a shell to access the database

Options:
  -h, --help          show this help message and exit

airflow db command error: argument COMMAND: Command `db upgrade` has been removed. Please use `airflow db migrate`, see help above.

@jedcunningham jedcunningham force-pushed the remove_deprecated_db_commands branch from 62d284d to b69af17 Compare December 5, 2024 21:00
I've added these to the "legacy commands" list, so Airflow will return a
helpful error message if someone does run them.
@jedcunningham jedcunningham force-pushed the remove_deprecated_db_commands branch from b69af17 to dd821bc Compare December 5, 2024 21:01
@jedcunningham jedcunningham added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Dec 5, 2024
@jedcunningham jedcunningham merged commit 052fd6f into apache:main Dec 6, 2024
49 checks passed
@jedcunningham jedcunningham deleted the remove_deprecated_db_commands branch December 6, 2024 18:40
LefterisXefteris pushed a commit to LefterisXefteris/airflow that referenced this pull request Jan 5, 2025
I've added these to the "legacy commands" list, so Airflow will return a
helpful error message if someone does run them.
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
I've added these to the "legacy commands" list, so Airflow will return a
helpful error message if someone does run them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes area:CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants