Documentation
¶
Overview ¶
Package migrate allows you to update your database from your application
Index ¶
Constants ¶
View Source
const DefaultTableName = `version`
DefaultTableName is the name used when no TableName is specified in Options
Variables ¶
View Source
var ErrUpdatesMissing = errors.New(`Missing migration files`)
ErrUpdatesMissing indicates an update is missing, making it impossible to execute the migration
Functions ¶
Types ¶
type Options ¶
type Options struct { TableName string // Name used for version info table; defaults to DefaultTableName if not set Schema string // Schema used for version info table; In PostgreSQL the current schema is changed to the one specified here AssetPrefix string }
Options contains all settings
Click to show internal directories.
Click to hide internal directories.