Skip to content

Commit

Permalink
Log if long migration is skipped (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 authored Nov 27, 2023
1 parent ffb77fe commit 6194949
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xormigrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (x *Xormigrate) migrate(migrationID string) error {

for _, migration := range x.migrations {
if migration.Long && !x.allowLong {
logger.Debugf("skipping migration %s: long migrations are disabled", migration.ID)
continue
}
if err := x.runMigration(migration); err != nil {
Expand Down

0 comments on commit 6194949

Please sign in to comment.