Corrected an issue where skipping any table skips SetSchema

This commit is contained in:
Jay 2022-12-01 17:46:14 +05:30
parent 882d5562f3
commit bda94469ea

View file

@ -80,10 +80,14 @@ func processTableSQLBuilderSetSchema(dirPath string, schemaMetadata metadata.Sch
builders = append(builders, table) builders = append(builders, table)
if table.Skip { if table.Skip {
return continue
} }
} }
if len(builders) == 0 {
return
}
fmt.Println("Generating global `SetSchema` method...") fmt.Println("Generating global `SetSchema` method...")
schemaIdentifier := utils.ToGoIdentifier(schemaMetadata.Name) schemaIdentifier := utils.ToGoIdentifier(schemaMetadata.Name)