How can I add a Prefix Index?
I migrated from Prisma, and I have a column with
varchar(2000)
which I indexed with @@index([columnName(length: 191)])
but the introspection schema didn't seem to recognize the index length:
is there a workaround to set the index length? maybe with raw sql?
Thank you in advance.4 Replies
Not for now, but we will have a support for it
As a workaround you can just create this index manually in database and leave //TODO comment in current schema to add this index right after we will add support for it
Has support for prefix indexes been added yet? I'm encountering an issue that requires a prefix index to be defined
@Andrew Sherman Any update on this?
not yet, we had a few other priorities, but it's on track