Creation table index in migrations

System Information
  • Strapi Version: 4.6.8
  • Operating System: MacOS
  • Database: MySQL 8
  • Node Version: 18.14.0
  • NPM Version: ~9

Is any legal way to create table index in migration? Seems in migration its not working. But i able to create table index in /src/index.js bootstrap method. However it looks like wrong solution