Home / Commands / affaan-m/ECC

database-migration

Workflow command scaffold for database-migration in ECC.

commandLicense: MIT Source: affaan-m/ECC

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/database-migration.md https://raw.githubusercontent.com/affaan-m/ECC/HEAD/.claude/commands/database-migration.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/database-migration.md https://raw.githubusercontent.com/affaan-m/ECC/HEAD/.claude/commands/database-migration.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
name: database-migration
description: Workflow command scaffold for database-migration in ECC.
allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob"]
---

# /database-migration

Use this workflow when working on **database-migration** in ECC.

## Goal

Database schema changes with migration files

## Common Files

- `**/schema.*`
- `migrations/*`

## Suggested Sequence

1. Understand the current state and failure mode before editing.
2. Make the smallest coherent change that satisfies the workflow goal.
3. Run the most relevant verification for touched files.
4. Summarize what changed and what still needs review.

## Typical Commit Signals

- Create migration file
- Update schema definitions
- Generate/update types

## Notes

- Treat this as a scaffold, not a hard-coded script.
- Update the command if the workflow evolves materially.