migrate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion(tx migration.LimitedTx) (int, error)

GetVersion gets the migration version from the database, creating the migration table if it does not already exist.

func Migrate_20142110

func Migrate_20142110(tx migration.LimitedTx) error

Migrate_20142110 is a database migration on Oct-10 2014.

func Migrate_20152701

func Migrate_20152701(tx migration.LimitedTx) error

Migrate_20142110 is a database migration on Oct-10 2014.

func SetVersion

func SetVersion(tx migration.LimitedTx, version int) error

SetVersion sets the migration version in the database, creating the migration table if it does not already exist.

func Setup

func Setup(tx migration.LimitedTx) error

Setup is the database migration function that will setup the initial SQL database structure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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