Help us shape the future of Go! Take the 2026 Go Developer Survey

migrate

command
v0.0.0-...-6f603c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Command migrate applies database migrations in order and records what it did.

Migrations are forward-only and each runs in its own transaction, so a failure leaves the schema at the last complete migration rather than half-applied (db/migrations/README.md).

It is deliberately small. A migration tool that can roll back encourages destructive down-migrations, and plan section 16.2 requires backwards compatible changes plus a pre-deploy backup instead.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL