PrismaP
Prismaโ€ข2y ago
Matt Hamann

Column order changing

We're using Prisma ORM with PlanetScale and we've noticed that Prisma will "randomly" change the order of the columns when we push schema updates. (See attached for an example)

This is happening even though we haven't modified the schema model order. In this case, we added a unique index on a completely different model/table, and yet a different table has been "modified" to change the column order.

Are we doing something wrong? If not, I can open an issue for further investigation.
image.png
Was this page helpful?