fix db schemas options with empty config

master
Oliver Tonnhofer 2013-12-12 10:56:53 +01:00
parent 69d08caec1
commit bb0cea1064
1 changed files with 3 additions and 3 deletions

View File

@ -66,13 +66,13 @@ func (o *_BaseOptions) updateFromConfig() error {
} }
} }
if o.Schemas.Import == defaultSchemaImport { if conf.Schemas.Import != "" && o.Schemas.Import == defaultSchemaImport {
o.Schemas.Import = conf.Schemas.Import o.Schemas.Import = conf.Schemas.Import
} }
if o.Schemas.Production == defaultSchemaProduction { if conf.Schemas.Production != "" && o.Schemas.Production == defaultSchemaProduction {
o.Schemas.Production = conf.Schemas.Production o.Schemas.Production = conf.Schemas.Production
} }
if o.Schemas.Backup == defaultSchemaBackup { if conf.Schemas.Backup != "" && o.Schemas.Backup == defaultSchemaBackup {
o.Schemas.Backup = conf.Schemas.Backup o.Schemas.Backup = conf.Schemas.Backup
} }