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 May 30, 2026
Latest versionv3.5.4+incompatible
Imported by2.0K packages
Stars18.5K
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 v3

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

Go Database Migration Libraries 10.8K stars 1.7K imported-by 95% confidence
95

#2 dbmate

🚀 A lightweight, framework-agnostic database migration tool.

Go Database Migration Libraries 6.9K stars 1 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 databasemigrationservice

Package databasemigrationservice provides the API client, operations, and parameter types for AWS Database Migration Service.

Go Database Migration Libraries 3.6K stars 65 imported-by 85% confidence
91

#5 sql-migrate

SQL Schema migration tool for Go.

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