PrismaP
Prisma4mo ago
6 replies
DeathlyNocturnal

Prisma migrations with old database getting issues.

Hey guys, we have a very large database, and we have done
prisma db pull
to pull down the structure into the
schema.prisma
file, and then we started moving stuff into a multi-file schema structure, nothing has been deleted/removed, just moved around.

Currently though, when we do:
prisma migrate dev
it's telling us there are loads of missing tables, for context
prisma generate
is correct, and has all the existing tables, nothing is lost.

But for some reason, asking prisma to migrate causes it to, essentially, not see the tables because they are in different folders? The configuration is correct and the multi-file stuff is correct as generate works... so unsure what is happening here?
Was this page helpful?