Next.js Discord

Discord Forum

Some questions concerning prisma db pull and prisma migrate

Unanswered
Buff-breasted Sandpiper posted this in #help-forum
Open in Discord
Buff-breasted SandpiperOP
I've had a lot on my mind lately and I can't concentrate, I'm looking for solutions, etc. I can't remember everything.

I have some questions.

NextJS 14.2
I need run this fallowing command npx prisma db pull also when i start the project in dev and builded editions? or only once ?

Let's assume that i have any model for example appAdmin who's look's like:
model appAdmin {
  id        Int     @id @default(autoincrement())
  email     String  @unique
  password  String
  name      String?
  surname   String?
  avatarUrl String?
}
(of course in prisma).

And when i run this command npx prisma migrate dev my data's in mysql base also was cleared?

1 Reply

Buff-breasted SandpiperOP
Sorry @joulev i have a lot of work for u today 🙂 haha