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

authoring

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package authoring owns the standalone tool's bounded migration source format. It requires one writer and a complete source backup; it never accesses a DB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(dir, name, kind string) error

Create stages Goose's supported templates, then publishes a preflighted set. Go names use lowercase ASCII words separated by underscores. All versions and identifiers must be unique across the directory; existing bodies are preserved.

func Fix

func Fix(dir string) error

Fix preserves sequential IDs and allocates timestamp IDs after their maximum. It never rewrites migration bodies or database history. Commit or separately back up all sources first; on failure restore that backup before retrying.

Types

This section is empty.

Jump to

Keyboard shortcuts

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