About db-migrate
A skill for Medusa developers that applies pending database migrations by running the specified command. It reports the migration count, any errors, and whether the operation succeeded.
Key features
- 01Run the Medusa migration command
- 02Report the number of applied migrations
- 03Report errors and success status
Use cases
- 01Apply pending migrations before deployment
- 02Review migration results
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ medusajs/ medusa-agent-skills --skill db-migrateAfter installing, type/db-migratein Claude Code to confirm it loaded.
Details
From the project READMERun 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
Comments
Markdown supported