diff --git a/99 Daily/2026-04-29.md b/99 Daily/2026-04-29.md index 164e085..785609d 100644 --- a/99 Daily/2026-04-29.md +++ b/99 Daily/2026-04-29.md @@ -602,3 +602,12 @@ tags: [daily] - 22:16 | `video-accessibility` - **Asked:** Fix Migration class variable being overwritten in __init__ causing all migrations to record incorrect version "0000-00-00-000000". - **Done:** Removed version and description initialization from __init__ to preserve class variables, then cleaned corrupted database records. +- 22:19 | `video-accessibility` + - **Asked:** How to clean up broken database migration records and resync migrations? + - **Done:** Provided three-command sequence to delete malformed migration history entries, pull latest code, and reapply migrations. +- 22:19 | `video-accessibility` + - **Asked:** Developer needed to fix broken migration history records and deploy code changes to production. + - **Done:** Identified shell quoting issue and stale container build; executed database cleanup with corrected syntax and copied fixed migrator file directly into running container. +- 22:21 | `video-accessibility` + - **Asked:** Fix MongoDB migration shell escaping and deploy corrected migrator to running container. + - **Done:** Dropped migration_history collection, copied fixed migrator.py to container, and re-ran migrations successfully.