Skip to content

Commit

Permalink
Update commands in docs for v1.10+ (apache#9585)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored and Chris Fei committed Mar 5, 2021
1 parent 29bb201 commit 21dff00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/best-practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ Once that is done, you can run -

.. code::
airflow db upgrade
airflow upgradedb
``upgrade`` keeps track of migrations already applies, so it's safe to run as often as you need.

.. note::

Do not use ``airflow db init`` as it can create a lot of default connection, charts, etc. which are not required in production DB.
Do not use ``airflow initdb`` as it can create a lot of default connection, charts, etc. which are not required in production DB.


Multi-Node Cluster
Expand Down
2 changes: 1 addition & 1 deletion docs/dag-serialization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Add the following settings in ``airflow.cfg``:
* ``store_dag_code``: This flag decides whether to persist DAG files code in DB.
If set to True, Webserver reads file contents from DB instead of trying to access files in a DAG folder.

If you are updating Airflow from <1.10.7, please do not forget to run ``airflow db upgrade``.
If you are updating Airflow from <1.10.7, please do not forget to run ``airflow upgradedb``.


Limitations
Expand Down

0 comments on commit 21dff00

Please sign in to comment.