This is an automated email from the ASF dual-hosted git repository.
joshfell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 018f1d5ebb Updating deprecated configuration in examples (#26037)
018f1d5ebb is described below
commit 018f1d5ebbd499bf404673dc5a16ba5787738bc7
Author: Itay <[email protected]>
AuthorDate: Mon Aug 29 16:29:27 2022 +0300
Updating deprecated configuration in examples (#26037)
```
/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py:528
DeprecationWarning: The sql_alchemy_schema option in [core] has been moved to
the sql_alchemy_schema option in [database] - the old setting has been used,
but please update your config.
```
---
docs/apache-airflow/howto/set-up-database.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/apache-airflow/howto/set-up-database.rst
b/docs/apache-airflow/howto/set-up-database.rst
index 77f1b3bdeb..01368b2f80 100644
--- a/docs/apache-airflow/howto/set-up-database.rst
+++ b/docs/apache-airflow/howto/set-up-database.rst
@@ -350,14 +350,14 @@ Official Docker image we have ODBC driver installed, so
you need to specify the
Other configuration options
---------------------------
-There are more configuration options for configuring SQLAlchemy behavior. For
details, see :ref:`reference documentation <config:core>` for ``sqlalchemy_*``
option in ``[core]`` section.
+There are more configuration options for configuring SQLAlchemy behavior. For
details, see :ref:`reference documentation <config:database>` for
``sqlalchemy_*`` option in ``[database]`` section.
For instance, you can specify a database schema where Airflow will create its
required tables. If you want Airflow to install its tables in the ``airflow``
schema of a PostgreSQL database, specify these environment variables:
.. code-block:: bash
- export
AIRFLOW__CORE__SQL_ALCHEMY_CONN="postgresql://postgres@localhost:5432/my_database?options=-csearch_path%3Dairflow"
- export AIRFLOW__CORE__SQL_ALCHEMY_SCHEMA="airflow"
+ export
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="postgresql://postgres@localhost:5432/my_database?options=-csearch_path%3Dairflow"
+ export AIRFLOW__DATABASE__SQL_ALCHEMY_SCHEMA="airflow"
Note the ``search_path`` at the end of the ``SQL_ALCHEMY_CONN`` database URL.