No. 0008
2025·09·05
2025·09·05 · 2025
Drizzle Migrations with a Safety Net
Ever ran a database migration only for it to fail halfway through, and then you're stuck with a partially migrated database? Then you try to run a rollback, which fails because the database is not on the previous version, nor is it on the next version, it's somewhere in between, so you have to cleanup manually. I've had this problem way too many times, so I finally got bothered by it enough to create a solution for myself.