Daniell
05/09/2022, 9:38 AMprisma1 CLI instead.
You can install it with npm install -g prisma1.
If you want to upgrade to Prisma 2+, please have a look at our upgrade guide:
http://pris.ly/d/upgrading-to-prisma2
at this step: https://www.prisma.io/docs/guides/upgrade-guides/upgrade-from-prisma-1/upgrading-the-prisma-layer-mysql#2-create-your-prisma-2-schemaNurul
05/09/2022, 9:54 AMNurul
05/09/2022, 9:55 AMNurul
05/09/2022, 9:56 AMDaniell
05/09/2022, 9:57 AMDaniell
05/09/2022, 9:57 AMNurul
05/09/2022, 10:04 AMDaniell
05/09/2022, 10:06 AM"devDependencies": {
"prisma": "^3.13.0",
"prisma1": "^1.34.12"
}Daniell
05/09/2022, 10:10 AMNurul
05/09/2022, 10:17 AM@prisma/client installed as a dependencies as well?Daniell
05/09/2022, 10:18 AMDaniell
05/09/2022, 10:18 AMNurul
05/09/2022, 10:19 AM"@prisma/client": "^3.13.0", in your dependencies and check?Daniell
05/09/2022, 10:20 AMNurul
05/09/2022, 10:29 AMnpx prima --versionDaniell
05/09/2022, 11:13 AMDaniell
05/09/2022, 11:23 AMDaniell
05/09/2022, 11:24 AMNurul
05/09/2022, 1:40 PMDaniell
05/09/2022, 1:42 PMDaniell
05/09/2022, 1:43 PMNurul
05/09/2022, 1:55 PMNurul
05/09/2022, 1:55 PMDaniell
05/09/2022, 1:58 PMandrewicarlson
05/09/2022, 2:18 PMnpx prisma init does 2 things:
1. Create a prisma folder in your project
2. Inside that folder create a single file named schema.prisma with the following contents
// This is your Prisma schema file,
// learn more about it in the docs: <https://pris.ly/d/prisma-schema>
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
Hopefully that helps you get started!Maxime
09/13/2022, 1:51 PM