migration

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const VersionTableName = "_version"

Variables

View Source
var ErrMigrationDisabled = errors.New("skydb/pq/migration: migration disabled")

Functions

func EnsureLatest added in v0.6.0

func EnsureLatest(db *sqlx.DB, schema string, allowMigration bool) error

Types

type Revision added in v0.6.0

type Revision interface {
	Version() string
	Up(tx *sqlx.Tx) error
	Down(tx *sqlx.Tx) error
}

Jump to

Keyboard shortcuts

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