mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
sqlx re-validates applied-migration checksums on every startup, so any byte change to a released migration file locks existing deployments out of starting with no automatic recovery. Record the released migrations in backend/migrations/.frozen-sha256 and fail CI when a frozen file changes or a new migration lands without being enrolled. Document the freeze rule and the local test-database environment in backend/migrations/README.md. The migration files themselves stay byte-identical: adding even a header comment would trip the same startup validation this guard protects. Co-authored-by: Claude <noreply@anthropic.com>