Difference between revisions of "Airflow db"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[airflow db upgrade]]
 
  [[airflow db upgrade]]
 +
[[airflow db downgrade]]
 
  [[airflow db init]]
 
  [[airflow db init]]
 +
[[airflow db check]]
 +
[[airflow db check-migrations]]
 +
[[airflow db clean]]
 +
[[airflow db shell]]
 +
 +
<pre>
 +
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 schema of the metadata database.
 +
    init            Initialize the metadata database
 +
    reset          Burn down and rebuild the metadata database
 +
    shell          Runs a shell to access the database
 +
    upgrade        Upgrade the metadata database to latest version
 +
 +
options:
 +
  -h, --help        show this help message and exit
 +
</pre>
  
  
 
== See also ==
 
== See also ==
* {{airflow}}
+
* {{airflow db}}
 +
* {{airflow cmd}}
  
 
[[Category:Apache]]
 
[[Category:Apache]]

Latest revision as of 18:09, 19 December 2022

airflow db upgrade
airflow db downgrade
airflow db init
airflow db check
airflow db check-migrations
airflow db clean
airflow db shell
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 schema of the metadata database.
    init            Initialize the metadata database
    reset           Burn down and rebuild the metadata database
    shell           Runs a shell to access the database
    upgrade         Upgrade the metadata database to latest version

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


See also[edit]

Advertising: