docs icon indicating copy to clipboard operation
docs copied to clipboard

All datamodels in Prisma schema examples should be orderd by the order the columns (would probably) have in the database

Open janpio opened this issue 5 years ago • 2 comments

2.3.0 changed Introspection to keep the order of the fields identical to what is discovered in the database. (Before the fields were ordered alphabetically). We should update all datamodels in the documenation to adhere to that to avoid confusion for our users.

janpio avatar Jul 28 '20 15:07 janpio

@janpio do you still think this one is relevant / worth the effort? I haven't seen people confused around column/field orderings in the last 4 years.

nikolasburk avatar Mar 13 '24 14:03 nikolasburk

It is inconsistent to how the Introspection result would really look like, so reproducing the examples from the docs manually would lead to different results to what we document.

Indeed not something we will hear a lot of complaints though, but just a general thing that will make beginner's life slightly more confusing.

janpio avatar Mar 13 '24 14:03 janpio

Closing this as it's outdated.

ankur-arch avatar Nov 13 '24 08:11 ankur-arch