From 29d71263b80c2db0fd7b8f3125e715eff51e760a Mon Sep 17 00:00:00 2001 From: Levi Junkert Date: Mon, 23 Dec 2019 10:07:19 -0800 Subject: [PATCH] Remove auto append public schema --- generator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/generator.go b/generator.go index 74ef66e..5ce0a8f 100644 --- a/generator.go +++ b/generator.go @@ -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) {