Skip to content

AirFlow Unit Testing not working as described in the documentation: #39403

Discussion options

You must be logged in to vote

Thank you for the reply!
It looks like there is no migrate option under the db commands:

airflow db command error: argument COMMAND: invalid choice: 'migrate' (choose from 'check', 'check-migrations', 'clean', 'downgrade', 'drop-archived', 'export-archived', 'init', 'reset', 'shell', 'upgrade'), see help above.
(env) camilla.montonen@STL-D14J5637T2 pipelines % airflow db --help
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 sche…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@camilla-storytel
Comment options

Answer selected by camilla-storytel
@Taragolis
Comment options

@camilla-storytel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind:bug This is a clearly a bug kind:documentation needs-triage label for new issues that we didn't triage yet
2 participants
Converted from issue

This discussion was converted from issue #39402 on May 04, 2024 11:56.