Skip to content

Commit

Permalink
add command to troubleshooting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Mar 7, 2024
1 parent 6ca41e1 commit 29d7638
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/source/usage/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,22 @@ Database Migration Issues

* You will have to find out which migrations were already applied:

.. code-block:: bash
:code:`python3 -m ansibleguy-webui.manage showmigrations`

sqlite3 <PATH-TO-YOUR-DB>
SELECT name,applied FROM django_migrations WHERE app = "aw";
* Or check your database manually:

* You can also check the current schema of the table you see mentioned in the error message
.. code-block:: bash
.. code-block:: bash
sqlite3 <PATH-TO-YOUR-DB>
SELECT name,applied FROM django_migrations WHERE app = "aw";
* You can also check the current schema of the table you see mentioned in the error message

.. code-block:: bash
sqlite3 <PATH-TO-YOUR-DB>
.table
.schema <TABLE>
sqlite3 <PATH-TO-YOUR-DB>
.table
.schema <TABLE>
* Check which migrations are available: :code:`python3 -m ansibleguy-webui.cli -a migrations.list`

Expand Down

0 comments on commit 29d7638

Please sign in to comment.