dbmigrate

package
v0.6.1-c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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