Versions in this module Expand all Collapse all v1 v1.0.0 Jan 24, 2020 Changes in this version + const AllAvailable + func Down(n int) error + func IsMigrated() (bool, error) + func MustRegister(up, down MigrationFunc) + func Register(up, down MigrationFunc) error + func SetDatabase(db *mongo.Database) + func SetMigrationsCollection(name string) + func Up(n int) error + type Migrate struct + func NewMigrate(db *mongo.Database, migrations ...Migration) *Migrate + func (m *Migrate) Down(n int) error + func (m *Migrate) IsMigrated() (bool, error) + func (m *Migrate) SetMigrationsCollection(name string) + func (m *Migrate) Up(n int) error + type Migration struct + Description string + Down MigrationFunc + Up MigrationFunc + Version uint64 + func RegisteredMigrations() []Migration + type MigrationFunc func(db *mongo.Database) error