dbmigrate

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrate = VersionCommands{
	"0.2.0": {Before: v0_2_0_Before},
	"0.3.0": {Before: v0_3_0_Before},
}

Migrate holds the VersionCommands for mytoken. These commands are used to migrate the database between mytoken versions.

Functions

This section is empty.

Types

type Commands

type Commands struct {
	Before []string `yaml:"before"`
	After  []string `yaml:"after"`
}

Commands is a type for holding sql commands that should run before and after a version update

type VersionCommands

type VersionCommands map[string]Commands

VersionCommands is type holding the Commands that are related to a mytoken version

Jump to

Keyboard shortcuts

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