Add postgres support #135
|
@ -34,7 +34,10 @@ func InitFixtures(tablenames ...string) (err error) {
|
|||
if config.DatabaseType.GetString() == "mysql" {
|
||||
helper = &testfixtures.MySQL{}
|
||||
} else if config.DatabaseType.GetString() == "postgres" {
|
||||
helper = &testfixtures.PostgreSQL{}
|
||||
helper = &testfixtures.PostgreSQL{
|
||||
// This prevents issues with entries that already exist in the db
|
||||
SkipResetSequences: true,
|
||||
}
|
||||
}
|
||||
dir := filepath.Join(config.ServiceRootpath.GetString(), "pkg", "db", "fixtures")
|
||||
|
||||
|
|
Loading…
Reference in New Issue