Compare commits
2 Commits
2937b93dff
...
2aee702fc6
Author | SHA1 | Date |
---|---|---|
genofire | 2aee702fc6 | |
genofire | 843a985be7 |
|
@ -28,7 +28,13 @@ func (config *Database) setupMigrator(testdata bool) (*gormigrate.Gormigrate, er
|
|||
return nil, ErrNothingToMigrate
|
||||
}
|
||||
|
||||
return gormigrate.New(config.DB, gormigrate.DefaultOptions, migrations), nil
|
||||
return gormigrate.New(config.DB, &gormigrate.Options{
|
||||
TableName: "migrations",
|
||||
IDColumnName: "id",
|
||||
IDColumnSize: 255,
|
||||
UseTransaction: true,
|
||||
ValidateUnknownMigrations: false,
|
||||
}, migrations), nil
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue