This is an automated email from the ASF dual-hosted git repository. jedcunningham pushed a commit to branch v2-2-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 03be5a186520d78afb4ac15368594d0e0c7c4468 Author: adaezebestow <[email protected]> AuthorDate: Sun Dec 19 12:26:04 2021 -0500 Update upgrading.rst with detailed code example of how to resolve post-upgrade warning (#19993) (cherry picked from commit 4ac35d723b73d02875d56bf000aafd2235ef0f4a) --- docs/apache-airflow/installation/upgrading.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/apache-airflow/installation/upgrading.rst b/docs/apache-airflow/installation/upgrading.rst index cd29e32..929c604 100644 --- a/docs/apache-airflow/installation/upgrading.rst +++ b/docs/apache-airflow/installation/upgrading.rst @@ -79,6 +79,21 @@ table or rename it or move it to another database using those tools. If you don' can use the ``airflow db shell`` command - this will drop you in the db shell tool for your database and you will be able to both inspect and delete the table. +How to drop the table using Kubernetes: + + +1. Exec into any of the Airflow pods - webserver or scheduler: ``kubectl exec -it <your-webserver-pod> python`` + +2. Run the following commands in the python shell: + + .. code-block:: python + + from airflow.settings import Session + + session = Session() + session.execute("DROP TABLE _airflow_moved__2_2__task_instance") + session.commit() + Please replace ``<table>`` in the examples with the actual table name as printed in the warning message. Inspecting a table:
