Skip to content

Commit

Permalink
Remove auto append public schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Junkert authored and wavemoran committed Dec 26, 2019
1 parent 184e9c6 commit 894f71b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ func CreateDumpFile(
"--no-owner",
}

if len(schemas) < 1 {
args = append(args, fmt.Sprintf("--schema=public"))
log.Info("Dumping the following schemas: [public]")
} else {
if len(schemas) >= 1 {
// Add all schemas that match schemaPrefix to the dump list
for _, s := range schemas {
if strings.HasPrefix(schemaPrefix, s) {
Expand Down

0 comments on commit 894f71b

Please sign in to comment.