agent/claude/code/commands/migrate.md
Snider 1b6ea990f4
feat(code): add /core:migrate Laravel migration helpers (#88)
Migrated from host-uk/core-claude#41

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 07:22:17 +00:00

35 lines
709 B
Markdown

---
name: migrate
description: Manage Laravel migrations in the monorepo
args: <subcommand> [arguments]
---
# Laravel Migration Helper
Commands to help with Laravel migrations in the monorepo.
## Subcommands
### `create <name>`
Create a new migration file.
e.g., `/core:migrate create create_users_table`
### `run`
Run pending migrations.
e.g., `/core:migrate run`
### `rollback`
Rollback the last batch of migrations.
e.g., `/core:migrate rollback`
### `fresh`
Drop all tables and re-run all migrations.
e.g., `/core:migrate fresh`
### `status`
Show the migration status.
e.g., `/core:migrate status`
### `from-model <model>`
Generate a migration from a model.
e.g., `/core:migrate from-model User`