Skip to content

Commit f32a820

Browse files
docs(guides): Remix asks for an empty database and shows the plan's full output
Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
1 parent 4eaa503 commit f32a820

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • apps/docs/content/docs/guides/frameworks

‎apps/docs/content/docs/guides/frameworks/remix.mdx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In Remix 3, a controller handles requests and passes database results to a compo
1515
## Prerequisites
1616

1717
- [Node.js](https://nodejs.org) 24.11 or newer
18-
- A PostgreSQL connection string. Use your own database, or run `npx create-db@latest` to create a [Prisma Postgres](/postgres) database.
18+
- A PostgreSQL connection string for an empty database. Use your own, or run `npx create-db@latest` to create a [Prisma Postgres](/postgres) database.
1919
- A [Prisma account](https://console.prisma.io) to deploy to Compute.
2020

2121
## 1. Create a Remix app
@@ -73,6 +73,7 @@ npx prisma db migrate
7373
```
7474

7575
```text no-copy
76+
✔ Planned 3 operation(s)
7677
ℹ No db ref set — planning from an empty database. Run db init, db update, or db sign if a database already exists.
7778
7879
migrations/app/20261203T1211_init
@@ -90,7 +91,7 @@ migrations/app/20261203T1211_init
9091

9192
Include both files when you commit your project to Git; the starter's `.gitignore` excludes neither file. Leave `src/prisma/db.ts` as generated: it uses `Contract` to check your queries and reads `contract.json` at runtime. `migration plan` writes the migration to `migrations/app/`, and `prisma db migrate` applies it, creating the `User` table with unique emails. Your database has no tables yet, so planning from an empty database is right, and you can ignore the notice about `db init`. The hosted database the deploy creates in step 7 gets its tables from the same migration, so commit the `migrations` directory with your project.
9293

93-
The Prisma CLI runs the files in `migrations`; your app never imports them. They import their contract snapshot without a file extension, which the starter's `"moduleResolution": "NodeNext"` rejects, so keep them out of the app's type check:
94+
Prisma ORM reads the files in `migrations`; your app never imports them. They import their contract snapshot without a file extension, which the starter's `"moduleResolution": "NodeNext"` rejects, so keep them out of the app's type check:
9495

9596
```json title="tsconfig.json"
9697
{

0 commit comments

Comments
 (0)