database: fix migration of testdata - or not
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
87131021f8
commit
009126c253
|
@ -69,9 +69,9 @@ func (config *Database) addMigrate(testdata bool, m ...*gormigrate.Migration) {
|
||||||
|
|
||||||
for _, i := range m {
|
for _, i := range m {
|
||||||
if testdata {
|
if testdata {
|
||||||
config.migrations[i.ID] = i
|
|
||||||
} else {
|
|
||||||
config.migrationTestdata[i.ID] = i
|
config.migrationTestdata[i.ID] = i
|
||||||
|
} else {
|
||||||
|
config.migrations[i.ID] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue