Naresh
04/22/2021, 1:30 PMNaresh
04/22/2021, 1:45 PMnpx prisma migrate save --experimentalDaniel Norman
npx prisma -v?Naresh
04/22/2021, 2:43 PMDaniel Norman
prisma and @prisma/client (2.21.2)
The error you are getting is because the guide is using an older version of Prisma.
You should replace the npx prisma migrate save --experimental and npx prisma migrate up --experimental calls with the following command:
npx prisma migrate dev
This will both create and apply the migration, and generate Prisma Client for you.Naresh
04/22/2021, 2:55 PMPS C:\Projects\GraphQL_1\my-app\server> npx prisma migrate dev
Prisma schema loaded from prisma\schema.prisma
Datasource "db": SQLite database "dev.db" at "file:./dev.db"
Error: The migrations folder contains migration files from an older version of Prisma Migrate which is not compatible.
done changes and getting error from migration folderDaniel Norman
prisma/migrations folder and then running the command.Daniel Norman