返回 Skill 列表
extension
分类: 开发与工程无需 API Key

database-migration-integrity-checker

审核SQL迁移文件中的破坏性操作、潜在的表锁和兼容性问题。在将迁移应用到生产数据库之前使用,以防止停机并确保数据完整性。

person作者: jakexiaohubgithub

Database Migration Integrity Checker

Purpose and Intent

The database-migration-integrity-checker is a safety net for your most critical asset: your data. It catches dangerous SQL operations that might pass a standard code review but could cause production outages or data loss.

When to Use

  • CI/CD Pipelines: Block deployments if a migration contains a high-risk operation without manual override.
  • Local Development: Run before committing a new migration to ensure it follows safe DDL practices.

When NOT to Use

  • Data Querying: This is for schema changes, not for auditing standard SELECT/INSERT queries.

Security and Data-Handling Considerations

  • Reads SQL files only; no database access required.
  • Safe for local use.