migration

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: Apache-2.0 Imports: 7 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

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

Types

type ReservedColumnExistedError added in v1.1.0

type ReservedColumnExistedError struct {
	// contains filtered or unexported fields
}

func (*ReservedColumnExistedError) Error added in v1.1.0

type Revision

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