migrations

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrations = [3]Migration{
	v0Initial,
	v1NameIndexes,
	v2ExtendPriceUnit,
}

Migrations is an ordered list of migrations to track and execute. It is represented by a fixed-size array to break the build if conflicting migrations were added concurrently.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Name string
	SQL  string
}

Migration represents a single DB migration with a unique Name and an SQL snippet to execute.

Jump to

Keyboard shortcuts

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