db-migrate
medusajs/medusa-agent-skills
Execute Medusa database migrations to apply pending schema changes.
What is db-migrate?
Runs the Medusa database migration command to apply pending migrations to your database. Use this when you need to update your database schema after installing packages or making configuration changes.
- Executes npx medusa db:migrate command
- Reports number of migrations applied
- Displays any errors that occurred during migration
- Provides success confirmation
- Applies pending database schema changes
How to install db-migrate
npx skills add https://github.com/medusajs/medusa-agent-skills --skill db-migrate- Medusa project installed and configured
- Database connection properly set up
- Node.js and npm installed
How to use db-migrate
- 1.Run the skill to execute database migrations
- 2.Review the migration results output
- 3.Check for any reported errors or warnings
- 4.Verify the number of migrations applied matches expectations
- 5.Confirm database schema is updated successfully
Use cases
- Update database schema after installing a new Medusa package
- Apply pending migrations during development workflow
- Sync database with latest code changes
- Prepare database for production deployment
- Resolve database schema inconsistencies
- Medusa developers
- Backend engineers
- DevOps engineers managing Medusa deployments
db-migrate FAQ
It runs the Medusa database migration command (npx medusa db:migrate) to apply any pending migrations to your database.
Use it after installing new Medusa packages, making configuration changes, or when you need to sync your database schema with your codebase.
It reports the number of migrations applied, any errors that occurred, and a success confirmation.
You need a Medusa project installed with a properly configured database connection and Node.js/npm installed.
Full instructions (SKILL.md)
Source of truth, from medusajs/medusa-agent-skills.
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
Related skills
More from medusajs/medusa-agent-skills and the wider catalog.

learning-medusa
Interactive bootcamp-style tutorial for learning Medusa development by building a brands feature.

new-user
Create a new admin user in Medusa with email and password.

storefront-best-practices
Essential patterns and integration guidance for building modern ecommerce storefronts with any framework.

building-admin-dashboard-customizations
Build custom admin dashboard UI extensions with widgets, pages, forms, and tables using Medusa Admin SDK.

eastmoney_financial_data
本 Skill 基于东方财富权威数据库及最新行情底层数据构建,支持通过自然语言查询行情类数据(股票、行业、板块、指数、基金、债券的实时行情、主力资金流向、估值等)、财务类数据(上市公司基本信息、财务指标、高管信息、主营业务等)、关系与经营类数据(关联关系、企业经营数据)。避免模型基于过时知识回答金融数据问题,提供权威及时的金融数据。

mem0
Persistent memory layer for AI apps—store, retrieve, and manage user context across conversations.