Labsco
medusajs logo

db-migrate

β˜… 195

by medusajs Β· part of medusajs/medusa-agent-skills

Execute pending Medusa database migrations and report results. Runs npx medusa db:migrate via Bash to apply all pending migrations to your Medusa database Reports migration outcomes including count of applied migrations, any errors encountered, and success confirmation Designed for Medusa projects with standard npm/npx setup

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup
🧩 One of 7 skills in the medusajs/medusa-agent-skills package β€” works on its own, and pairs well with its siblings.

This is the playbook your agent receives when the skill activates β€” you don't need to read it to use the skill, but it's here to audit before installing.


name: db-migrate description: Run database migrations in Medusa allowed-tools: Bash(npx medusa db:migrate:*)

Run Database Migrations

Execute the Medusa database migration command to apply pending migrations.

Use the Bash tool to execute: npx medusa db:migrate

Report the migration results to the user, including:

  • Number of migrations applied
  • Any errors that occurred
  • Success confirmation