Add index to attributes (not Mongo)

Hello,

As far as I know you can’t add Index on SQLite, SQL, PG from model file by adding "index":true to attribute. Any solution/working example on how to add indexes automatically during bootstrap?

Thanks

System Information
  • Strapi Version: 3.2.5
  • Operating System: ubuntu 18.04 lts
  • Database: sqlite
  • Node Version: v12.18.4
  • Yarn Version: 1.22.5

This is a topic that has come up as we start to focus on the database refresh for this quarter, going to poke @alexandrebodin but to my knowledge not currently though I agree we should add this.

Reference to the roadmap: Database layer (v4) - Roadmap | Product Roadmap

1 Like