mg0

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
}

func (Migration) Apply

func (m Migration) Apply(opts migrate.Options) error

Apply applies the migration in question. This migration merely adds a version file.

func (Migration) Reversible

func (m Migration) Reversible() bool

Reversible returns whether this migration can be reverted. Endeavor to make them all reversible. This is here only to warn users in case this is not the case.

func (Migration) Revert

func (m Migration) Revert(opts migrate.Options) error

Revert un-applies the migration in question. This should be best-effort. Some migrations are definitively one-way. If so, return an error.

func (Migration) Versions

func (m Migration) Versions() string

Version is the int version number. This could be a string in future versions

Jump to

Keyboard shortcuts

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