Skip to content

/result_migration

The /result_migration command generates a migration file based on the recommendations from your latest scan. This allows you to apply the suggested indexes directly to your database without manually writing SQL.

/result_migration

You send:

/result_migration

Bot responds:

Building migration file... 🏗️
Done! Here is your migration file for project 'My Awesome API':
[Attachment: 20240218_add_recommended_indexes.sql]
You can apply this directly to your database.
  • The format of the migration file (e.g., SQL, Laravel migration, Django migration) is determined by the Framework and Database settings you provided during /init.
  • Always review migration files before applying them to a production environment.