Add descending indexes in mySQL schema
I do not find how to add a descending index from a schema in mySQL. I know I could always execute the following line manually:
But I'd really like to be able to include it in the
drizzle-kit push
command because I know I will forget at some point otherwise.
Any idea of how to accomplish it?2 Replies
I believe this behavior is available in drizzle-orm but not yet supported in the kit. Maybe it is in the latest. You'll need to do some tests.
Indexes & Constraints - Drizzle ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.