From b07ea178d0835354b8acdc5365f59b9ae782fcc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20G=C3=A1bor?= <97041873+Aleesssino@users.noreply.github.com> Date: Fri, 18 Oct 2024 07:45:41 +0200 Subject: [PATCH] docs: Add instructions for resetting the local Prisma database (#495) (#501) --- .../running-things-locally/running-the-api.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/contributing-to-keyshade/running-things-locally/running-the-api.md b/docs/contributing-to-keyshade/running-things-locally/running-the-api.md index ebc6c188..e6fb23c5 100644 --- a/docs/contributing-to-keyshade/running-things-locally/running-the-api.md +++ b/docs/contributing-to-keyshade/running-things-locally/running-the-api.md @@ -24,6 +24,12 @@ pnpm run db:deploy-migrations pnpm run dev:api ``` +- There might be a case when you would like to create a completely fresh copy of the database. In that case, you might use the reset command: + +```bash +pnpm run db:reset +``` + ## Testing your code We currently perform two kinds of tests: **unit tests** and **integration tests.**