database: fix migration of testdata - or not
continuous-integration/drone the build was successful Details

This commit is contained in:
genofire 2021-09-17 21:14:33 +02:00
parent 87131021f8
commit 009126c253
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }
} }
} }