planetscale: how to index col using drizzle?
Hi, seems most of the samples are pg. I'm using planetscale, and no having any luck figuring out how to index a col. here's simple table I'm wanting to use to test/eval:
Any help much appreciated. Thanks!
2 Replies
Hello, did you try:
if it should be also unique, you can swap with
uniqueIndex
(ref: https://orm.drizzle.team/docs/mysql/indexes-foreign-primary-keys)Thanks Raphaël! That did the trick. Much appreciated 🙂