macOS
brew install golang-migratelocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de golang-migrate pour les workflows d'agents IA.
installation
brew install golang-migratelocal Homebrew formula metadata
sudo dnf install migrateFedora Rawhide package metadata · migrate · Source: dl.fedoraproject.org
nix profile install nixpkgs#migratenixpkgs package indexes · pkgs/by-name/mi/migrate/package.nix · Source: api.github.com
sudo apt install python-migrate-docUbuntu 24.04 LTS package indexes · python-migrate-doc · Source: archive.ubuntu.com
scoop install main/migrateScoop official bucket manifest trees · bucket/migrate.json · Source: api.github.com
aperçu
Database migrations CLI tool
historique
golang-migrate is a Go database migration project distributed as both a CLI and a Go library. It applies ordered migration files from source drivers to database drivers, deliberately keeping database drivers simple while centralizing migration logic in the core package.
The project traces back to `mattes/migrate`, a database migration repository created in 2014. The maintained `golang-migrate/migrate` repository was created in January 2018 and states that it was forked from `mattes/migrate`.
The fork preserved the core CLI/library model while continuing the driver architecture. Its README documents a broad matrix of database drivers, including PostgreSQL, MySQL/MariaDB, SQLite, SQL Server, Cassandra/ScyllaDB, ClickHouse, MongoDB, CockroachDB, and cloud-oriented sources such as GitHub, GitLab, S3, and Google Cloud Storage.
The project standardized on Go module import paths for v4 and explicitly marks v3 as unsupported in its README. That version boundary matters because many Go projects embed migration support directly in their own binaries rather than only shelling out to the CLI.
golang-migrate became a common Go ecosystem migration tool because it works both as a standalone `migrate` binary and as an importable library. The README points to packagecloud deb packages, Docker images, GitHub releases, and Go documentation, while the batch input records Homebrew, Fedora, Nix, Scoop, and other package-manager entries.
The maintained fork's GitHub repository had over 18,000 stars and more than 1,500 forks in the 2026 GitHub API snapshot used for this batch, making it one of the better-known Go-native database migration tools.
The standard workflow is to create paired up/down SQL files with `migrate create`, then run them with a source such as `file://path/to/migrations` and a database URL. The getting-started guide emphasizes running migrations up, down, and up again before committing them.
Operationally, golang-migrate is intentionally explicit: the README says the CLI has no config search paths, no config files, and no magic environment-variable injection. Users pass source and database URLs directly, and database credentials normally live in those URLs or in caller-managed secret handling rather than in a tool-owned credentials file.
The getting-started guide highlights dirty database states, force operations, idempotent migrations, transaction wrapping, and database locking when multiple app instances may run migrations. Those warnings are why package users often treat `migrate` as deployment infrastructure rather than a casual development helper.
For package nerds, golang-migrate is the archetypal Go single-binary infrastructure tool: it can be installed from Homebrew, run from Docker, vendored as a library, or baked into a release artifact. The driver split also makes downstream builds interesting, because packagers and application authors decide which database/source drivers to include.
Its significance is also cultural: it represents the Go preference for explicit URLs, small binaries, and predictable failure over framework-managed migration magic. That makes it popular in CI pipelines and container entrypoints where reproducibility beats convenience.
posture de sécurité
broad file, network, media, or database tool signal.
risque blue · confiance moyen · tool
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
migrate | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/golang-migrate/migrate
métadonnées d'installation
| Clé du paquet | brew:golang-migrate |
|---|---|
| Version | 4.19.1 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/golang-migrate |
| Page d'accueil | https://github.com/golang-migrate/migrate |
| Dépôt | https://github.com/golang-migrate/migrate |
| Docs amont | https://github.com/golang-migrate/migrate#readme |
| Licence | MIT |
| Archive source | https://github.com/golang-migrate/migrate/archive/refs/tags/v4.19.1.tar.gz |
| Dépendances de compilation | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | golang-migrate |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
migrate
nix profile install nixpkgs#migratepython-migrate-doc 0.13.0-0ubuntu2
Database schema migration for SQLAlchemy - doc
https://github.com/openstack/sqlalchemy-migrate
sudo apt install python-migrate-docpython3-migrate 0.13.0-0ubuntu2
Database schema migration for SQLAlchemy - Python 3.x
https://github.com/openstack/sqlalchemy-migrate
sudo apt install python3-migratemigrate 4.19.1-4.fc44
Go database migrations library and program
https://github.com/golang-migrate/migrate
sudo dnf install migratemain/migrate
scoop install main/migratepiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.