You will find this feature in the Actions tab of your application details. The “ Run Migrations ” button allows you to perform migrations effortlessly with a single click.
How it works
- Start the migration : Click the Run Migrations button.
- Automatic backup : Before applying the migrations, an automatic database backup is created to ensure data security.
- Run migrations : The migrations are applied and you can run multiple migrations in succession.
- View results : The migration results are displayed in a modal window, providing you with detailed CLI output.
Why migrations are important
Migrations are essential scripts used to apply changes to your database schema. They are necessary when you first set up your Medusa backend and for applying updates when new Medusa versions introduce changes to the database schema. Using migrations ensures that your database structure is always aligned with the requirements of your application. Detailed information on creating and managing migrations can be found in the MedusaJS documentation.
Database migrations in GUI
Automatic automatic backups before each migration.
Start using the new migration feature today and enjoy a smoother, more efficient way to manage your database migrations directly from the GUI.
Happy migrating! 🚀