migrations

package
v0.10.0-rc8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package migrations embeds the per-dialect goose-format SQL migration files under migrations/<dialect>/ into the ncps binary. At runtime, `ncps migrate up` selects the dialect-specific sub-FS via `fs.Sub(FS, "<dialect>")` and hands it to `goose.NewProvider`.

Migration files are produced by `cmd/generate-migrations` (Atlas as a Go library) from the Ent schemas under `ent/schema/`. They are also kept under per-dialect integrity files (`atlas.sum`) — those files are produced and verified by Atlas; see `cmd/generate-migrations`.

Index

Constants

This section is empty.

Variables

FS embeds every file under migrations/sqlite, migrations/postgres, and migrations/mysql. Per-dialect access via:

fs.Sub(migrations.FS, "sqlite")
fs.Sub(migrations.FS, "postgres")
fs.Sub(migrations.FS, "mysql")

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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