# rubenv/sql-migrate

SQL schema migration tool for Go.

Repository: https://github.com/rubenv/sql-migrate
Canonical: https://ross.abutalabs.com/products/sql-migrate
Language: Go
License: MIT
License Family: permissive
Topics: sql, go, sql-schema-migration, bindata
Last push: 2026-07-14T07:47:39+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 35, longevity 100
- inputs: {"age_days": 4376, "days_push": 50, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3419, forks 292 (observed 2026-08-28T04:08:03.794222+00:00)

## What it is
A SQL schema migration tool for Go, usable both as a standalone CLI and as a library. It supports SQLite, PostgreSQL, MySQL, MSSQL, and Oracle, with atomic, up/down SQL migrations that can be embedded into applications.

## Use cases
- manage database schema migrations in a Go project
- run up and down SQL migrations from the command line
- embed SQL migrations into a Go application binary
- roll back the last applied database migration
- check the migration status of a database
- support multiple database types in one project

## When to choose
- you write migrations in plain SQL and want full flexibility
- you need a Go library to run migrations programmatically at startup
- you want atomic migrations with rollback support
- you need to support several database dialects in one project

## When to avoid
- you prefer writing migrations in Go code rather than SQL
- you need a migration tool for a non-Go stack
- you want declarative or automatic schema diffing rather than hand-written migrations

## Facets
- artifact type: cli-tool
- maturity: stable
- function: database, cli, developer-tools
- domain: databases, developer-tools, backend
- platform: go, cli, cross-platform
- tags: sql-migrations, schema-migration, gorp, database-migrations, up-down-migrations, embedded-migrations

## Member repositories
- rubenv/sql-migrate (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.794222+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:10.288325+00:00, confidence not recorded.
  - readme: https://github.com/rubenv/sql-migrate (fetched 2026-08-28T04:08:03.794222+00:00, sha 32773de14649)
- Data as of 2026-08-30T08:39:29.467469+00:00.
