Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
Andrew Thornton 2022-01-05 10:23:52 +00:00
parent 7f471d653d
commit ec13261367
No known key found for this signature in database
GPG Key ID: 3CDE74631F13A748
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ func (engine *Engine) dumpTables(ctx context.Context, tables []*schemas.Table, w
DBName: uri.DBName,
// DO NOT SET SCHEMA HERE
}
if dstDialect.URI().DBType == schemas.POSTGRES {
if tp[0] == schemas.POSTGRES {
destURI.Schema = engine.dialect.URI().Schema
}
if err := dstDialect.Init(&destURI); err != nil {