github.com/golang-migrate/migrate

migrate

Package migrate reads migrations from sources and runs them against databases.

91

Decision Signals

Health score 91/100, confidence 100/100.

Excellent
Maintenance 88
Adoption 100
Security 92
Maturity 84
Developer DX 91
Confidence 100

Install

go get github.com/golang-migrate/migrate

Package Data

updated Jun 10, 2026
Latest versionv3.5.4+incompatible
Imported by2.0K packages
Stars18.6K
Forks1.6K
Last activity2 months ago
Latest releasev4.19.1 (6 months ago)
LicenseNOASSERTION
Known vuln records0

API Surface

55 symbols
SymbolKindSynopsis
ErrDirty Type type ErrDirty struct{ ... }
ErrDirty.Error Method func (e ErrDirty) Error() string
ErrDirty.Version Field Version int
ErrShortLimit Type type ErrShortLimit struct{ ... }
ErrShortLimit.Error Method func (e ErrShortLimit) Error() string
ErrShortLimit.Short Field Short uint
Logger Type type Logger interface{ ... }
Logger.Printf Method Printf func(format string, v ...interface{})
Logger.Verbose Method Verbose func() bool
Migrate Type type Migrate struct{ ... }
Migrate.Close Method func (m *Migrate) Close() (source error, database error)
Migrate.Down Method func (m *Migrate) Down() error

Similar Packages

Go Database Migration Libraries

#1 sql-migrate

SQL Schema migration tool for Go.

Go Database Migration Libraries 3.4K stars 1.9K imported-by 100% confidence
95

#2 v3

A database migration tool. Supports SQL migrations and Go functions.

Go Database Migration Libraries 10.9K stars 0 imported-by 75% confidence
87

#3 soda

A Tasty Treat For All Your Database Needs

Go Database Migration Libraries 1.5K stars 0 imported-by 45% confidence
82

#4 rel

Package rel contains all rel primary APIs, such as Repository.

Go Database Migration Libraries 783 stars 0 imported-by 65% confidence
76

#5 schema

Package schema provides tools to manage database schema changes ("migrations") as embedded functionality inside another application which is using a database/sql

Go Database Migration Libraries 0 stars 14 imported-by 45% confidence
53