From ruflo-migrations
Database migration operations — create, apply, rollback, validate, and inspect migration history
How this command is triggered — by the user, by Claude, or both
Slash command
/ruflo-migrations:migrateThe summary Claude sees in its command listing — used to decide when to auto-load this command
Migration commands: **`migrate create <name>`** -- Create a new migration with sequential numbering. 1. Scan the migrations directory for the highest existing migration number 2. Compute the next number (zero-padded to 3 digits) 3. Generate `NNN_<name>.up.sql` and `NNN_<name>.down.sql` files 4. Populate with SQL template appropriate for the name (create table, add column, add index) 5. Store migration metadata via `mcp__claude-flow__agentdb_hierarchical-store` 6. Report: file paths created, migration number, template used **`migrate up [--dry-run]`** -- Apply pending migrations. 1. Recall...
Migration commands:
migrate create <name> -- Create a new migration with sequential numbering.
NNN_<name>.up.sql and NNN_<name>.down.sql filesmcp__claude-flow__agentdb_hierarchical-storemigrate up [--dry-run] -- Apply pending migrations.
--dry-run, display the SQL for each pending migration without executing.up.sql file in order, recording resultsmigrations namespacemigrate down [--steps N] -- Rollback the last N migrations (default: 1).
.down.sql files in reverse ordermigrations namespacemigrate status -- Show migration status.
migrate validate -- Validate pending migrations for safety.
.up.sql and .down.sql filesmigrate history -- Show full migration execution history.
migrations namespacenpx claudepluginhub adnan-bawani/ruflo.chat --plugin ruflo-migrations/migrateAlias for /portaljs-migrate that will be removed next minor release. Invoke /portaljs-migrate instead.
/migratePlans and executes incremental framework or library migrations: audits dependencies, analyzes breaking changes, creates ordered plan, executes module-by-module, verifies with tests and performance checks.
/migrateAnalyzes legacy ETL (stored procedures, SSIS, Informatica) and produces modern dbt models, PySpark jobs, Airflow DAGs, migration mappings, and validation queries.
/migrateMigrate ADVPL procedural .prw code to TLPP object-oriented .tlpp code with classes, namespaces, and modern patterns. Analyzes structure, shows detailed plan requiring approval, then generates files and optional wrapper.
/migrateMigrate Nuxt UI from v2/v3 to v4: auto-detects version, fixes breaking changes in components/configs/composables, updates deps, runs checks. Use --dry-run to preview or --from v3.
/migrateMigrates project from Task Master MCP to native markdown-based task tracking: verifies artifacts, ports pending tasks to /docs/wip Markdown files, cleans up files, updates configs and docs.