$npx -y skills add medusajs/medusa-agent-skills --skill db-migratedb-migrate is an agent skill published from medusajs/medusa-agent-skills, installable through the skills CLI.
| 1 | # Run Database Migrations |
| 2 | |
| 3 | Execute the Medusa database migration command to apply pending migrations. |
| 4 | |
| 5 | Use the Bash tool to execute: `npx medusa db:migrate` |
| 6 | |
| 7 | Report the migration results to the user, including: |
| 8 | |
| 9 | - Number of migrations applied |
| 10 | - Any errors that occurred |
| 11 | - Success confirmation |