From 38f3bdfb68f2df9b4c8606d4462ecb108c6380e4 Mon Sep 17 00:00:00 2001 From: Dusan Vuckovic Date: Mon, 27 Oct 2025 11:37:18 +0000 Subject: [PATCH 1/2] Fixes #728 - Adjust reset instructions to refer to the new command. --- admin/console/dangerzone-for-experts.rst | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/admin/console/dangerzone-for-experts.rst b/admin/console/dangerzone-for-experts.rst index 0064bc72..fcee850b 100644 --- a/admin/console/dangerzone-for-experts.rst +++ b/admin/console/dangerzone-for-experts.rst @@ -143,24 +143,31 @@ 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 + $ rake zammad:db:truncate .. code-block:: console - $ rake db:create + $ rake db:migrate .. code-block:: console - $ rake db:migrate + $ rake db:seed .. code-block:: console - $ rake db:seed + $ 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, and rebuild + the indices. However, it will not ask for your confirmation between each step + so you should use it with caution. From 34eabcead97709897df2ba1ca135011ca880115f Mon Sep 17 00:00:00 2001 From: Dusan Vuckovic Date: Mon, 27 Oct 2025 16:18:20 +0000 Subject: [PATCH 2/2] fix: Address review findings. --- admin/console/dangerzone-for-experts.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/admin/console/dangerzone-for-experts.rst b/admin/console/dangerzone-for-experts.rst index fcee850b..593e5e79 100644 --- a/admin/console/dangerzone-for-experts.rst +++ b/admin/console/dangerzone-for-experts.rst @@ -149,18 +149,26 @@ Reset Zammad Installation Don't forget to stop Zammad before trying to reset your instance! +Truncate the database: + .. code-block:: console $ 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 @@ -168,6 +176,6 @@ Reset Zammad Installation .. 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, and rebuild - the indices. However, it will not ask for your confirmation between each step - so you should use it with caution. + 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.