
Description
Generate database migrations for a Medusa module
SKILL.md
Generate Database Migrations
Generate database migrations for the specified Medusa module.
The user will provide the module name as an argument (e.g., brand, product, custom-module).
For example: /medusa-dev:db-generate brand
Use the Bash tool to execute the command npx medusa db:generate <module-name>, replacing <module-name> with the provided argument.
Report the results to the user, including:
- The module name for which migrations were generated
- Migration file name or location
- Any errors or warnings
- Next steps (running
npx medusa db:migrateto apply the migrations)
More skills from the medusa-agent-skills repository
View all 17 skillsbuilding-admin-dashboard-customizations
customize Medusa Admin dashboard UI
Apr 6E-commerceFrontendMedusaUI Componentsbuilding-storefronts
implement Medusa storefront features
Apr 6E-commerceEngineeringFrontendMedusa +1building-with-medusa
implement Medusa backend features
Apr 6BackendData ModelingE-commerceMedusacreating-agents-in-medusa
build admin-facing AI agents in Medusa
Jul 14AgentsBackendMedusadb-migrate
run database migrations in Medusa
Apr 6DatabaseMedusaMigrationlearning-medusa
guide Medusa development learning
Apr 6BackendE-commerceMedusaTemplates
More from Medusa
View publishermcloud-deployments
manage Medusa Cloud deployments
medusa-agent-skills
May 9DeploymentLogsMedusaObservabilitymcloud-environments
manage Medusa Cloud environments
medusa-agent-skills
Jul 17DeploymentMedusaOperationsmcloud-local
reproduce Cloud builds locally
medusa-agent-skills
Jul 17DebuggingDeploymentEngineeringMedusamcloud-logs
fetch and stream runtime cloud logs
medusa-agent-skills
May 9CloudLogsMedusaObservabilitymcloud-organizations
manage Medusa Cloud organizations
medusa-agent-skills
May 9MedusaOperations