Remove option to skip resets in postgres

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-02-16 17:24:51 +01:00
parent 4426d8c643
commit 01852631fb
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 15 deletions

View File

@ -51,27 +51,15 @@ func InitFixtures(tablenames ...string) (err error) {
testfiles,
}
if config.DatabaseType.GetString() == "postgres" {
loaderOptions = append(loaderOptions, testfixtures.SkipResetSequences())
}
// if config.DatabaseType.GetString() == "postgres" {
// loaderOptions = append(loaderOptions, testfixtures.SkipResetSequences())
// }
fixtures, err = testfixtures.New(loaderOptions...)
if err != nil {
return err
}
// var helper testfixtures.Helper = &testfixtures.SQLite{}
// if config.DatabaseType.GetString() == "mysql" {
// helper = &testfixtures.MySQL{}
// } else if config.DatabaseType.GetString() == "postgres" {
// helper = &testfixtures.PostgreSQL{
// // This prevents issues with entries that already exist in the db
// SkipResetSequences: true,
// }
// }
//
// testfixtures.SkipDatabaseNameCheck(true)
return err
}