From 78b69ae5086e4aacac585ae33dbac5237ba729f2 Mon Sep 17 00:00:00 2001 From: Toluwap <33985313+harcop@users.noreply.github.com> Date: Tue, 2 Sep 2025 05:24:46 +0100 Subject: [PATCH] Update missing direction creation (#1146) Update the doc for missing userData for the database. --- ## Summary by cubic Add a setup step in CONTRIBUTING.md to create the userData directory required by the database. This prevents migration commands from failing on fresh installs. --- CONTRIBUTING.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee3a547..c12111d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,9 +20,23 @@ Dyad is an Electron app. npm install ``` +**Create the userData directory (required for database)** + +```sh +# Unix/macOS/Linux: +mkdir -p userData + +# Windows PowerShell (run only if folder doesn't exist): +mkdir userData + +# Windows Command Prompt (run only if folder doesn't exist): +md userData +``` + **Apply migrations:** ```sh +# Generate and apply database migrations npm run db:generate npm run db:push ```