360 Secure SkillHub
360 安全技能中心

db-migrate

该 Skill 通过 Bash 运行 Medusa 数据库迁移命令,以应用待执行的迁移,并向用户报告已应用的迁移数量、错误信息和成功确认;材料未说明回滚、数据库连接配置或迁移文件生成能力。

medusajs
热度 43.12
最近更新 2026-10-19 01:35:39
分类:开发依赖:代码执行应用场景:DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add medusajs/medusa-agent-skills/db-migrate
Metadata
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