migrations

command
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Command migrations is a minimal example of using the `quarkmigrate` package to wire a plan/verify/apply CLI workflow for a Quark-managed schema. Adapt this to your project by replacing the models in `myModels()` and the DSN in `loadDSN()`.

go run ./examples/migrations plan     # show what would change
go run ./examples/migrations verify   # exit 1 if drift (CI gate)
go run ./examples/migrations apply    # actually run the plan

Jump to

Keyboard shortcuts

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