migrations

package
v0.0.0-...-40809a1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrations

func GetMigrations() (migrations []orm.Migration)

GetMigrations Returns migrations applicable to the given DB over various version transistions

Types

type UserDBMigration

type UserDBMigration struct {
	BaseVersion   orm.VersionNumber
	TargetVersion orm.VersionNumber
	MigrationFunc func(db interface{}) error
}

UserDBMigration Represents migration objects used for the example DB

func (*UserDBMigration) Apply

func (m *UserDBMigration) Apply(db interface{}) error

Apply ....

func (*UserDBMigration) GetBaseVersion

func (m *UserDBMigration) GetBaseVersion() orm.VersionNumber

GetBaseVersion ...

func (*UserDBMigration) GetTargetVersion

func (m *UserDBMigration) GetTargetVersion() orm.VersionNumber

GetTargetVersion ...

Jump to

Keyboard shortcuts

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