# golang-migrate/migrate

Database migrations. CLI and Golang library.

Repository: https://github.com/golang-migrate/migrate
Canonical: https://ross.abutalabs.com/products/migrate
Language: Go
License: NOASSERTION
License Family: other
Topics: go, golang, migration, migrations, database, postgres, cassandra, sqlite, mysql, neo4j, mongodb, databases, sql, mariadb, spanner, google-cloud-spanner, aws-s3, google-cloud-storage, hacktoberfest
Last push: 2026-07-05T16:52:19+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 35, longevity 100
- inputs: {"age_days": 3148, "days_push": 59, "days_rel": 277, "gap_med": 92, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 18854, forks 1605 (observed 2026-08-28T04:11:27.169782+00:00)

## What it is
A database migration tool written in Go, usable both as a CLI and as an importable Go library. It reads migration files from various sources and applies them in order across many database drivers including PostgreSQL, MySQL, MongoDB, SQLite, and Cassandra.

## Use cases
- run database schema migrations from the command line
- embed database migrations in a Go application
- migrate PostgreSQL schema versions
- apply SQL migration files in order
- manage migrations across MySQL, MongoDB, and SQLite
- run database migrations in CI/CD pipelines

## When to choose
- you need versioned, ordered schema migrations across many database engines
- you want migrations callable from a CLI, Docker image, or Go code
- you prefer a lightweight tool that fails on bad input rather than guessing

## When to avoid
- you need an ORM-style migration DSL tied to your application models
- your database has no supported driver in the project
- you want automatic schema diffing/generation rather than hand-written migration files

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, cli, developer-tools
- domain: databases, developer-tools, backend
- platform: go, cli, cross-platform
- tags: database-migrations, schema-migrations, sql, postgres, mysql, mongodb, sqlite, cassandra, clickhouse, docker

## Member repositories
- golang-migrate/migrate (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:27.169782+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-29T17:01:16.910953+00:00, confidence not recorded.
  - readme: https://github.com/golang-migrate/migrate (fetched 2026-08-28T04:11:27.169782+00:00, sha 64764abe32c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
