uranusjr commented on a change in pull request #19993:
URL: https://github.com/apache/airflow/pull/19993#discussion_r763679895



##########
File path: docs/apache-airflow/installation/upgrading.rst
##########
@@ -79,6 +79,20 @@ 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()
+

Review comment:
       ```suggestion
    .. code-block:: python
        from airflow.settings import Session
   
        session = Session()
        session.execute("DROP TABLE _airflow_moved__2_2__task_instance")
        session.commit()
   
   ```
   
   I _think_ indenting by two spaces is not enough. Could be wrong, but let’s 
be safe, IIRC GitHub and Sphinx also have slightly different behaviours.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to