Skip to main content
ClaudeWave
Slash Command214.4k repo starsupdated yesterday

database-migration

The database-migration command provides a structured workflow for executing database schema changes and creating migration files. Use this command when modifying database schemas, generating migration files, or updating type definitions related to schema changes in the everything-claude-code repository, following a sequence that emphasizes understanding current state, making minimal coherent changes, and verifying modifications.

Install in Claude Code
Copy
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/affaan-m/ECC/HEAD/.claude/commands/database-migration.md -o ~/.claude/commands/database-migration.md
Then start a new Claude Code session; the slash command loads automatically.

database-migration.md

# /database-migration

Use this workflow when working on **database-migration** in `everything-claude-code`.

## 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.