今日已更新 69 条资讯 | 累计 20935 条内容
关于我们

Why DROP COLUMN breaks rolling deploys, and a CI linter to catch it

/u/joey-archestra 2026年06月12日 03:04 1 次阅读 来源:Reddit r/programming

Author here. We kept writing migrations that were fine as a final schema but unsafe during the rollout itself - old pods still reading a column while new pods have already dropped it. Django solved this ages ago with django-migration-linter, which I leaned on for years on Grafana OnCall. Drizzle has nothing like it, so we wrote one for our CI. It diffs new migrations against the base branch and fails on drops, renames, and required columns added in one step. It’s buried in our monorepo right now. There’s an issue linked in the post if you’d want it published to npm. submitted by /u/joey-archestra [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文