PrismaP
Prisma6mo ago
14 replies
Sheik Mostafizur

Question about Prisma Migrations and "public" Schema

Hi! I noticed that in my recent Prisma migrations, the generated SQL now includes "public"."table_name" for table creation and foreign keys, but in my older migrations, it was just "table_name" without the schema prefix. I haven’t changed anything in my schema.prisma regarding schemas.

Why does Prisma now add the "public". prefix in migration SQL?
Is this a new default behavior in recent Prisma versions?
Is there any impact or best practice I should be aware of?

Thanks for any clarification!
image.png
Was this page helpful?