AgentSkillsCN

db-migrate

在 Medusa 中执行数据库迁移。可在生成迁移脚本后使用,或在将待处理的迁移应用到数据库时使用。

SKILL.md
--- frontmatter
name: db-migrate
description: Run database migrations in Medusa. Use after generating migrations or when applying pending migrations to the database.

Run Database Migrations

Execute the Medusa database migration command to apply pending migrations.

Use the Shell 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