Remove option to skip resets in postgres
Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
parent
4426d8c643
commit
01852631fb
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue