Registry / database / golang-migrate-migrate

golang-migrate-migrate

JSON →
library3.5.4+incompatiblegogounverified

Package migrate reads database migrations from sources and applies them to databases.

go get github.com/golang-migrate/migrate
INSTALL
IMPORT
SIG · GOLANG-MIGRATE-MIG
G
golang-migrate-migrate
databasegov3.5.4+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

migrate
github.com/golang-migrate/migrate

Run database migrations from a file source.

package main import ( "github.com/golang-migrate/migrate/v4" _ "github.com/golang-migrate/migrate/v4/database/postgres" _ "github.com/golang-migrate/migrate/v4/source/file" ) func main() { m, err := migrate.New("file://migrations", "postgres://localhost:5432/dbname") if err != nil { panic(err) } m.Up() }
Debug
Known issues
breakingVersion 3.5.4 is outdated; use v4 for latest features.
fix
Upgrade to github.com/golang-migrate/migrate/v4
affects: <4.0.0
Upgrade
Version history
3.5.4+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
golang-migrate-migrate — go get golang-migrate-migrate · libregistry