github.com/golang-migrate/migrate/v4

v4

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

93

Decision Signals

Health score 93/100, confidence 95/100.

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

Install

go get github.com/golang-migrate/migrate/v4

Package Data

updated May 28, 2026
Latest versionv4.19.1
Imported by5.2K packages
Stars18.5K
Forks1.6K
Last activity2 months ago
Latest releasev4.19.1 (5 months ago)
LicenseNOASSERTION
Known vuln records0

API Surface

56 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 dbmate

🚀 A lightweight, framework-agnostic database migration tool.

Go Database Migration Libraries 6.9K stars 1 imported-by 100% confidence
94

#2 soda

Package pop wraps the absolutely amazing https://github.com/jmoiron/sqlx library.

Go Database Migration Libraries 1.5K stars 618 imported-by 100% confidence
94

#3 rel

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

Go Database Migration Libraries 781 stars 123 imported-by 100% confidence
91

#4 sql-migrate

SQL Schema migration tool for Go.

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

#5 v3

Go Database Migration Libraries 0 stars 1.7K imported-by 65% confidence
68