From 4f51dba79ec8ef478c7ad498907bfc84b0c3facf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Galeran?= Date: Tue, 2 Apr 2024 13:34:33 +0200 Subject: [PATCH] chore(d1): update README for Preview (#23491) Co-authored-by: jkomyno --- packages/adapter-d1/README.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/adapter-d1/README.md b/packages/adapter-d1/README.md index ef4caca9177c..831dc1c3f23a 100644 --- a/packages/adapter-d1/README.md +++ b/packages/adapter-d1/README.md @@ -2,13 +2,10 @@ Prisma driver adapter for [Cloudflare's D1 database](https://developers.cloudflare.com/d1/). -> [!IMPORTANT] -> We do not recommend using the adapter in a production environment yet. -> The adapter is currently in [Early Access](https://www.prisma.io/docs/orm/more/releases#early-access), we are looking for feedback before moving to Preview. +> [!NOTE] +> The adapter is currently in [Preview](https://www.prisma.io/docs/orm/more/releases#early-access), we are looking for feedback before moving to General Availability. - - - +Refer to the [announcement blog post](https://prisma.io/cloudflare-d1) and our [docs](https://www.prisma.io/docs/orm/overview/databases/cloudflare-d1) for more details. ## Getting started @@ -30,9 +27,9 @@ datasource db { Install Prisma CLI, Prisma Client, the Prisma adapter for Cloudflare D1, the TypeScript types for Cloudflare Workers, and Wrangler CLI packages: ```sh -npm install @prisma/client@early-access -npm install @prisma/adapter-d1@early-access -npm install --save-dev prisma@early-access +npm install @prisma/client +npm install @prisma/adapter-d1 +npm install --save-dev prisma npm install --save-dev @cloudflare/workers-types npm install --save-dev wrangler ``` @@ -105,10 +102,12 @@ export default { > database_id = "" > ``` - +## Migrations + +Please refer to our [docs](https://www.prisma.io/docs/orm/overview/databases/cloudflare-d1#migration-workflows) to learn how to manage schema changes when using Prisma and Cloudflare D1. + +## Feedback - +If you have any feedback, leave a comment in [this GitHub discussion](https://github.com/prisma/prisma/discussions/23646).