migration

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 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 Down00003 added in v1.0.0

func Down00003(tx *sql.Tx) error

Down00003 destroys rating tables.

func Down00004 added in v1.0.1

func Down00004(tx *sql.Tx) error

Down00004 drops ip type.

func Down00005 added in v1.1.0

func Down00005(tx *sql.Tx) error

Down00005 does nothing.

func Down00006 added in v1.1.0

func Down00006(tx *sql.Tx) error

Down00006 does nothing.

func Down00007 added in v1.2.0

func Down00007(tx *sql.Tx) error

Down00007 does nothing.

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 Up00003 added in v1.0.0

func Up00003(tx *sql.Tx) error

Up00003 creates rating tables.

func Up00004 added in v1.0.1

func Up00004(tx *sql.Tx) error

Up00004 adds ip type.

func Up00005 added in v1.1.0

func Up00005(tx *sql.Tx) error

Up00005 deletes old unused setting.

func Up00006 added in v1.1.0

func Up00006(tx *sql.Tx) error

Up00006 deletes old unused setting.

func Up00007 added in v1.2.0

func Up00007(tx *sql.Tx) error

Up00007 deletes old unused setting.

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