database-migration-integrity-checker

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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.
database-migration-integrity-checker
是您最关键资产——数据的安全保障。它能捕获那些可能通过常规代码审查,但会导致生产环境停机或数据丢失的危险SQL操作。

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.
  • CI/CD流水线:如果迁移包含高风险操作且未手动覆盖,则阻止部署。
  • 本地开发:提交新迁移前运行,确保其遵循安全的DDL实践。

When NOT to Use

不适用场景

  • Data Querying: This is for schema changes, not for auditing standard SELECT/INSERT queries.
  • 数据查询:此工具用于*模式(Schema)*变更,而非审计标准SELECT/INSERT查询。

Security and Data-Handling Considerations

安全与数据处理注意事项

  • Reads SQL files only; no database access required.
  • Safe for local use.
  • 仅读取SQL文件;无需访问数据库。
  • 本地使用安全。