---
name: db-migrate
description: Run database migrations in Medusa
allowed-tools: Bash(npx medusa db:migrate:*)
title: db-migrate
canonical_url: https://skilld.dev/gh/medusajs/medusa-agent-skills/db-migrate
last_updated: 2026-09-29T12:20:34.000Z
---

> **Skill from skilld.dev.** Follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install medusajs/medusa-agent-skills/db-migrate`. Install writes the Skill files into the project, so every session loads them.

# 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
