Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions admin/console/dangerzone-for-experts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,39 @@ Reset Zammad Installation

.. hint::

Below commands are incomplete intentionally, error outputs will hint you
through! The following operations will cause data loss and are for
Below commands are intentionally incomplete, error output will guide you
through! The following operations will cause data loss and are intended for
development / testing only.

Don't forget to stop Zammad before trying to drop the database!
Don't forget to stop Zammad before trying to reset your instance!

.. code-block:: console

$ rake db:drop
Truncate the database:

.. code-block:: console

$ rake db:create
$ rake zammad:db:truncate

Migrate the database:

.. code-block:: console

$ rake db:migrate

Load the seed data:

.. code-block:: console

$ rake db:seed

Clear the cache and reload the settings:

.. code-block:: console

$ rake zammad:db:rebuild

.. hint::

You can also use the ``zammad:db:reset`` command to reset your instance. This task
will truncate the database, run the migrations, seed the database, clear the cache
and reload the settings. However, it will not ask for your confirmation between each
step, so you should use it with caution.