Versions in this module Expand all Collapse all v0 v0.6.2 Apr 12, 2017 Changes in this version + var DefaultOptions = &Options + var ErrMissingID = errors.New("Missing ID in migration") + var ErrNoMigrationDefined = errors.New("No migration defined") + var ErrNoRunnedMigration = errors.New("Could not find last runned migration") + var ErrRollbackImpossible = errors.New("It's impossible to rollback this migration") + type InitSchemaFunc func(*xorm.Engine) error + type Migrate struct + func New(db *xorm.Engine, options *Options, migrations []*Migration) *Migrate + func (m *Migrate) InitSchema(initSchema InitSchemaFunc) + func (m *Migrate) Migrate() error + func (m *Migrate) RollbackLast() error + func (m *Migrate) RollbackMigration(mig *Migration) error + type MigrateFunc func(*xorm.Engine) error + type Migration struct + ID string + Migrate MigrateFunc + Rollback RollbackFunc + type Options struct + IDColumnName string + TableName string + type RollbackFunc func(*xorm.Engine) error