Skip to content
Hacker News · AI·· 8 h agoAI score40

go-migrate: SQL migrations with one-use approvals for AI agents

Go-migrate – SQL migrations with one-use approvals for AI agents

AI summary

go-migrate v1.0.1 is a standalone CLI and embeddable Go runner for versioned SQL migrations across PostgreSQL, MySQL/MariaDB, SQLite, SQL Server, Oracle and IBM Db2 LUW. It adds a reviewed-plan workflow: `gomigrate up --sql` previews the exact SQL and its plan ID, and `--expect-plan` applies only that plan or fails with plan_changed. The release also bundles an MCP server and reports 727.8 KiB allocated per 100 SQLite migrations at defaults, versus 10.66 MiB for golang-migrate v4.20.1 and 1.14 MiB for goose v3.30.1.

Source:Hacker News · AI · github.com