Skip to content

Commit

Permalink
Fix godoc (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 authored Nov 7, 2023
1 parent 4ba8b09 commit ffb77fe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions xormigrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ type RollbackFunc func(*xorm.Engine) error
// InitSchemaFunc is the func signature for initializing the schema.
type InitSchemaFunc func(*xorm.Engine) error

// MigrateFunc is the func signature for migrating.
// MigrateFuncSession is the func signature for migrating using xorm.Session.
type MigrateFuncSession func(*xorm.Session) error

// RollbackFunc is the func signature for rollbacking.
// RollbackFuncSession is the func signature for rollbacking using xorm.Session.
type RollbackFuncSession func(*xorm.Session) error

// Migration represents a database migration (a modification to be made on the database).
Expand Down Expand Up @@ -107,10 +107,7 @@ func (x *Xormigrate) InitSchema(initSchema InitSchemaFunc) {
x.initSchema = initSchema
}

// InitSchema sets a function that is run if no migration is found.
// The idea is preventing to run all migrations when a new clean database
// is being migratinx. In this function you should create all tables and
// foreign key necessary to your application.
// AllowLong enables migrations that are marked as probably long-running.
func (x *Xormigrate) AllowLong(allow ...bool) {
allowLong := true
if len(allow) > 0 {
Expand Down

0 comments on commit ffb77fe

Please sign in to comment.