Index sort order, NULL
behavior: NULLS FIRST
/ NULLS LAST
#15466
Labels
kind/feature
A request for a new feature.
status/has-stopgap
A stopgap for this functionality has been implemented.
team/psl-wg
team/schema
Issue for team Schema.
topic: database-functionality
topic: extendedIndexes
topic: indexes
topic: postgresql
Seems our index sort order feature currently only lets your sort ascending or descending, but not define where the NULLs should be put: https://www.prisma.io/docs/concepts/components/prisma-schema/indexes#configuring-the-index-sort-order-with-sort
https://www.postgresql.org/docs/9.6/sql-createindex.html#:~:text=descending%20sort%20order.-,NULLS%20FIRST,-Specifies%20that%20nulls
Variants of our sort orders that add
NullsFirst
andNullsLast
to the available values seems like an easy way to fix this.The text was updated successfully, but these errors were encountered: