跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Ruflo Migrations

插件 活跃
属于:Ruflo

Schema migration management — generate, validate, dry-run, and rollback database migrations

2 个 Skill 0 个 MCP
目的

To provide robust and safe management of database schema changes throughout the development lifecycle.

功能

  • Generate sequential migrations with up/down SQL pairs
  • Validate pending migrations for consistency and safety
  • Dry-run SQL execution before applying changes
  • Rollback applied migrations
  • Track migration status and history

使用场景

  • Creating new database schema changes
  • Ensuring database migrations are safe before deployment
  • Reverting database schema changes
  • Auditing the history of database schema modifications

非目标

  • Performing direct database operations beyond schema migration management
  • Providing generic SQL execution capabilities
  • Managing application-level data migrations

实践

  • Schema Migration Management
  • SQL Validation
  • Rollback Safety

Documentation

  • info:Configuration & parameter referenceThe README details the CLI commands and their arguments, but default values for parameters like `--steps N` are not explicitly listed.

Code Execution

  • warning:ValidationWhile parameter shapes are likely handled by the CLI, the script logic for parsing SQL and performing validation might not use a formal schema library, and validation logic itself could be more robustly typed.

Security

  • warning:Unguarded Destructive OperationsWhile `migrate down` and `migrate validate` have warnings for destructive operations, the `migrate up` command, which applies changes, does not have an explicit `--dry-run` as the default, nor is there a clear confirmation prompt before executing potentially destructive migrations in a non-interactive setting.

Scope

  • warning:Dry-run previewWhile `migrate up` has a `--dry-run` option, it's not the default, and the plugin does not explicitly state if `migrate down` or other state-changing operations have a dry-run preview.

Protocol

  • info:Idempotent retry & timeoutsThe plugin uses `IF EXISTS`/`IF NOT EXISTS` for some operations, suggesting idempotency. Timeouts are not explicitly mentioned for remote calls, though none appear to be present.

安装

请先添加 Marketplace

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-migrations@ruflo

质量评分

77 /100
about 11 hours ago 分析

信任信号

最近提交about 12 hours ago
星标50.2k
许可证MIT
状态
查看源代码