Skip to content

Commit

Permalink
Updated the shared schema config to default to the first schema. Verb…
Browse files Browse the repository at this point in the history
…ose is better. Currently only updated the psql and atlas drivers.
  • Loading branch information
rkrishnasanka committed Mar 4, 2024
1 parent 7b0e50d commit 0b3b749
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions gen/bobgen-atlas/driver/atlas.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ func (d *driver) Assemble(ctx context.Context) (*DBInfo, error) {
return nil, err
}

if d.config.SharedSchema == "" {
d.config.SharedSchema = realm.Schemas[0].Name
}

d.loadEnums(realm)
dbinfo = &DBInfo{
Enums: d.getEnums(),
Expand Down
4 changes: 0 additions & 4 deletions gen/bobgen-psql/driver/psql.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ func New(config Config) Interface {
config.Schemas = pq.StringArray{"public"}
}

if config.SharedSchema == "" {
config.SharedSchema = config.Schemas[0]
}

if config.UUIDPkg == "" {
config.UUIDPkg = "gofrs"
}
Expand Down

0 comments on commit 0b3b749

Please sign in to comment.