migration

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Down00001

func Down00001(tx *sql.Tx) error

Down00001 will be executed as part of a rollback.

func Down00002 added in v0.23.1

func Down00002(tx *sql.Tx) error

Down00002 does nothing. No rollback needed.

func Migrate

func Migrate(connStr string, version int64) error

Migrate executes migration scripts.

func Up00001

func Up00001(tx *sql.Tx) error

Up00001 will be executed as part of a forward migration.

func Up00002 added in v0.23.1

func Up00002(tx *sql.Tx) error

Up00002 removes redundant system.version.db settings from DB.

func Version

func Version(connStr string) (int64, error)

Version returns the version of the database schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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