Skip to content

Remove deprecated cli commands from the db group - #44706

Merged
jedcunningham merged 3 commits into
apache:mainfrom
astronomer:remove_deprecated_db_commands
Dec 6, 2024
Merged

Remove deprecated cli commands from the db group#44706
jedcunningham merged 3 commits into
apache:mainfrom
astronomer:remove_deprecated_db_commands

Conversation

@jedcunningham

@jedcunninghamjedcunningham commented Dec 5, 2024

Copy link
Copy Markdown
Member

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
jedcunninghamforce-pushed the remove_deprecated_db_commands branch from 62d284d to b69af17CompareDecember 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
jedcunninghamforce-pushed the remove_deprecated_db_commands branch from b69af17 to dd821bcCompareDecember 5, 2024 21:01
@jedcunninghamjedcunningham 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:mainDec 6, 2024
@jedcunningham
jedcunningham deleted the remove_deprecated_db_commands branch December 6, 2024 18:40
@Lee-WLee-W mentioned this pull request Dec 26, 2024
2 tasks
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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

airflow3.0:breakingCandidates for Airflow 3.0 that contain breaking changesarea:CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@jedcunningham@potiuk@hussein-awala