migration

package
v1.4.2-beta3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upgrade

func Upgrade(migrations []Migration, store storage.Store) error

Types

type Migration

type Migration interface {
	Migrate(store storage.Store) error
	StartVersion() int
	EndVersion() int
}

type MigrationV15ToV16 added in v1.4.1

type MigrationV15ToV16 struct {
}

func (MigrationV15ToV16) EndVersion added in v1.4.1

func (m MigrationV15ToV16) EndVersion() int

func (MigrationV15ToV16) Migrate added in v1.4.1

func (m MigrationV15ToV16) Migrate(store storage.Store) error

func (MigrationV15ToV16) StartVersion added in v1.4.1

func (m MigrationV15ToV16) StartVersion() int

type MigrationV1ToV15 added in v1.4.2

type MigrationV1ToV15 struct {
}

func (MigrationV1ToV15) EndVersion added in v1.4.2

func (m MigrationV1ToV15) EndVersion() int

func (MigrationV1ToV15) Migrate added in v1.4.2

func (m MigrationV1ToV15) Migrate(store storage.Store) error

func (MigrationV1ToV15) StartVersion added in v1.4.2

func (m MigrationV1ToV15) StartVersion() int

type Migrations

type Migrations []Migration

func (Migrations) Len

func (m Migrations) Len() int

func (Migrations) Less

func (m Migrations) Less(i, j int) bool

func (Migrations) Swap

func (m Migrations) Swap(i, j int)

Jump to

Keyboard shortcuts

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