Browse Source

database: fix migration of testdata - or not

license
genofire 9 months ago
parent
commit
009126c253
  1. 4
      database/migration.go

4
database/migration.go

@ -69,9 +69,9 @@ func (config *Database) addMigrate(testdata bool, m ...*gormigrate.Migration) {
for _, i := range m {
if testdata {
config.migrations[i.ID] = i
} else {
config.migrationTestdata[i.ID] = i
} else {
config.migrations[i.ID] = i
}
}
}

Loading…
Cancel
Save