Add postgres support #135

Merged
konrad merged 26 commits from jtojnar/api:pgsql into master 2020-02-16 21:42:05 +00:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit ae2dc57daa - Show all commits

View File

@ -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")