migrations

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplates

func ParseTemplates(content *string, templates []*Template)

func ValidateMigrations

func ValidateMigrations(migrations []*Migration) []error

Types

type Hook

type Hook struct {
	Order   uint8
	Version uint16 // Only used in hooks with order and version
	Content *string
	Type    enums.HookType
}

type Migration

type Migration struct {
	Version     uint16
	Description string
	Type        enums.MigrationType
	Checksum    *string // Only used in migrations up
	Content     *string
}

type Template

type Template struct {
	Name    string
	Content *string
}

Jump to

Keyboard shortcuts

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