Catch blocking Postgres migrations before they hit production #4135
ayarotsky
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built a tool to detect dangerous Postgres migrations in projects that use Diesel or SQLx. Operations like
CREATE INDEX idx_users_email ON users(email)seem harmless, but block all writes for the entire duration of the index build.diesel-guardanalyzes your migration SQL and shows exactly what's unsafe and how to fix it:Currently supported checks: https://github.com/ayarotsky/diesel-guard?tab=readme-ov-file#checks
Feedback and contributions welcome!
Beta Was this translation helpful? Give feedback.
All reactions