anyone can help here? I am using prisma 3.15 I did...
# orm-help
r
anyone can help here? I am using prisma 3.15 I did db pull from my database and there is no error but when we did prisma generate it throws error
Copy code
error: No such argument.
  -->  schema.prisma:326
   | 
325 | 
326 |   @@index([eway_txn_id], Map: "consolidated_eway_txn_id_idx")
it looks like it doesn't understand
Map: "consolidated_eway_txn_id_idx"
but it was generated by the prisma db pull. I tried to check the doc about @@index, but I cannot find info about the Map parameter. But I assume if it is created by the db pull, it should be valid? Please advise. Thanks.
1
l
This might be a silly suggestion but ...try lower-casing it? You can see an example of map being used to map prisma names to actual index names here: https://www.prisma.io/docs/concepts/components/prisma-client/working-with-prismaclient/use-custom-model-and-field-names#using-map-an[…]ma-client-api in the
PostInCategories
example
🙌 1
r
Thanks!