dbmigrate

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationCommands = VersionCommands{}

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

View Source
var Versions []string

Versions holds all versions for which migration commands are available

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