From 9c66c5186040f53c169d51a7f65fa21aedf415ff Mon Sep 17 00:00:00 2001 From: anshul-garg27 Date: Wed, 29 Apr 2026 17:50:41 +0530 Subject: [PATCH 1/2] Update persistence README paths to match crates/persistence layout `schema.rs` and `schema.patch` were moved to `crates/persistence/` as part of opening up the source tree, but the migration README still pointed at the old `app/src/persistence/` paths and referenced the `` directory name. - `app/src/persistence/schema.rs` -> `crates/persistence/src/schema.rs` - `app/src/persistence/schema.patch` -> `crates/persistence/schema.patch` - `cd ` -> `cd ` Doc-only change. --- app/src/persistence/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/persistence/README.md b/app/src/persistence/README.md index 646fca445..3e2536416 100644 --- a/app/src/persistence/README.md +++ b/app/src/persistence/README.md @@ -26,10 +26,10 @@ This will create a new folder with an up.sql and down.sql. ## Step 3: Run the migration + generate the schema ``` -cd +cd diesel migration run --database-url="/Users/$USER/Library/Application Support/dev.warp.Warp-Local/warp.sqlite" ``` -This will run the migration on the same warp that runs when you run the app locally. This automatically generates or updates the `app/src/persistence/schema.rs`. We do not make manual edits to `schema.rs`. +This will run the migration on the same warp that runs when you run the app locally. This automatically generates or updates the `crates/persistence/src/schema.rs`. We do not make manual edits to `schema.rs`. You can also print the schema from a database that already has the migration with: ``` @@ -49,7 +49,7 @@ diesel migration redo --database-url="/Users/$USER/Library/Application Support/d - If there's a table `foos` and a table `bars`, and `bars` has a column with a foreign key that references `foos.id`, name it `foo_id`. # The `schema.patch` file -The `app/src/persistence/schema.patch` is manually updated by us. This file lets us make manual +The `crates/persistence/schema.patch` is manually updated by us. This file lets us make manual changes on top of the auto-generated `schema.rs` file produced by `diesel_cli`. To create the `schema.patch` file, we: From 347fbf362133de2610352c2f82ed218dc36a0405 Mon Sep 17 00:00:00 2001 From: anshul-garg27 Date: Wed, 29 Apr 2026 17:56:42 +0530 Subject: [PATCH 2/2] Also update schema.patch creation path in README --- app/src/persistence/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/persistence/README.md b/app/src/persistence/README.md index 3e2536416..b1633dba4 100644 --- a/app/src/persistence/README.md +++ b/app/src/persistence/README.md @@ -55,6 +55,6 @@ changes on top of the auto-generated `schema.rs` file produced by `diesel_cli`. To create the `schema.patch` file, we: 1. Run the diesel migrations 1. Manually edit `schema.rs` -1. Run `git diff -U6 > app/src/persistence/schema.patch`. +1. Run `git diff -U6 > crates/persistence/schema.patch`. You can read more about this patch file in the official [Diesel documentation](https://diesel.rs/guides/configuring-diesel-cli.html#the-patch_file-field).