Join Slack
Powered by
How can I define json specific key index in schema...
# orm-help
a
Ahmet
11/16/2021, 12:56 AM
How can I define json specific key index in schema?
r
Ryan
11/16/2021, 6:29 AM
@Ahmet
👋 You cannot directly add it in the schema, you need to add via Migrate via the following steps: 1. Create the migration using
prisma migrate dev --create-only
2. Add the index in the generated
.sql
file 3. Apply the migration using
prisma migrate dev
.
5
Views
Open in Slack
Previous
Next