Go database-migrations

Open-source Go projects categorized as database-migrations

Top 15 Go database-migration Projects

database-migrations
  1. bytebase

    Database governance built for humans and agents — controlling changes and access across every major database.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. goose

    A database migration tool. Supports SQL migrations and Go functions. (by pressly)

    Project mention: Run pressly/goose Migrations as a Flisk One-Shot Job | dev.to | 2026-10-22

    FROM debian:bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \ && rm -rf /var/lib/apt/lists/* ARG GOOSE_VERSION=3.24.1 ADD [https://github.com/pressly/goose/releases/download/v${GOOSE_VERSION}/goose_linux_x86_64](https://github.com/pressly/goose/releases/download/v${GOOSE_VERSION}/goose_linux_x86_64) /usr/local/bin/goose RUN chmod +x /usr/local/bin/goose WORKDIR /migrations COPY migrations /migrations # Overridden by the job. Default is intentionally not "up" so a bare docker run does nothing destructive. ENTRYPOINT ["goose"] CMD ["-dir", "/migrations", "status"]

  4. dbmate

    🚀 A lightweight, framework-agnostic database migration tool.

    Project mention: spawn alternatives - dbmate, Flyway, atlas, liquibase, and goose | libhunt.com/r/saward/spawn | 2026-09-07
  5. sqldef

    Idempotent schema management for MySQL, PostgreSQL, SQLite, and SQL Server

    Project mention: I built pistachio, a declarative schema tool for PostgreSQL | dev.to | 2026-09-04

    I started with sqldef, a tool built around the same concept, but it failed to parse some of the SQL in my development schema. I also considered pgschema, but it has PostgreSQL itself interpret the desired schema, which means you need an embedded PostgreSQL or a dev server. That was heavier to operate than I wanted, so I skipped it. Instead I built pistachio, which parses the schema with pg_query_go, PostgreSQL's own parser packaged as a library. If PostgreSQL can parse it, pistachio can, and the tool stays lightweight.

  6. database-lab-engine

    DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.

  7. astroladb

    Schema-first platform with multi-language type exports, auto-migrations and a generator runtime for building REST APIs, GraphQL, SDKs, and more.

    Project mention: Stop writing boilerplate: A Single Source of Truth for Rust, Go, Python and TS | dev.to | 2026-01-28

    GitHub: github.com/hlop3z/astroladb Docs: hlop3z.github.io/astroladb

  8. gosmig

    Simple, minimal SQL database migrations written in Go. Build your own migration CLI with it. Std lib database/sql and SQLX supported out of the box.

  9. migrate

    A simple database migration tool. (by maragudk)

  10. migrator

    Super fast and lightweight DB migration & evolution tool written in Go (by lukaszbudnik)

  11. miflo

    A database schema migration tool. Supports SQLite, PostgreSQL, and libSQL.

  12. libschema

    database schema migrations on a per-library basis [Go]

  13. dbdaddy

    manage databases, better.

  14. godfish

    a db migration management CLI and library

  15. miglite

    🚀 miglite is a lightweight and simplified database schema migration tool. Golang 实现的极简易用的数据库 Schema 迁移工具,无三方DB驱动依赖。

    Project mention: miglite v0.8.0: ship migrations inside the binary | dev.to | 2026-09-29
  16. vow

    embeddable postgres migration runner & cli for go/pgx with advisory locks and sha256 checksums

    Project mention: I Built a Distributed Task Queue from Scratch with Go and PostgreSQL | dev.to | 2026-10-02

    The migration runner is the best example of this. Dhara needed a way to set up its database tables, and instead of picking an existing tool, I built one. It started as a small part of Dhara and grew into a project of its own: Vow. It runs your SQL files in order, uses PostgreSQL advisory locks so two instances of a service can't migrate at the same time, and refuses to run if an already applied migration was renamed or deleted. Dhara's migrations run through Vow. I'll write about what I learned about database migrations in a separate post.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go database-migrations discussion

Log in or Post with

Go database-migrations related posts

  • spawn alternatives - dbmate, Flyway, atlas, liquibase, and goose

    6 projects | 7 Sep 2026
  • Seamless Integration Testing for Your Go Application on GitHub Actions with PostgreSQL

    2 projects | dev.to | 22 Nov 2024
  • Ask HN: What tool(s) do you use to code review and deploy SQL scripts?

    5 projects | news.ycombinator.com | 14 Apr 2024
  • How do your teams run DB migrations?

    4 projects | /r/devops | 1 Jun 2023
  • Has anyone used Terraform for provisioning database schema?

    5 projects | /r/Terraform | 5 Jan 2023
  • Database version control: how do you do it at your company?

    5 projects | /r/dataengineering | 12 Oct 2022
  • Maybe a dumb question ... but is there a default schema migration tool? for postgresql?

    1 project | /r/PostgreSQL | 27 Sep 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 7 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source database-migration projects in Go? This list will help you:

# Project Stars
1 bytebase 14,669
2 goose 11,644
3 dbmate 7,511
4 sqldef 3,187
5 database-lab-engine 2,784
6 astroladb 84
7 gosmig 75
8 migrate 52
9 migrator 25
10 miflo 21
11 libschema 19
12 dbdaddy 18
13 godfish 14
14 miglite 9
15 vow 2

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Go is
the 5th most popular programming language
based on number of references?