If you want to control the specifics of generating schemas (create or migrate), you can do direct calls to the vschema.exe on the command-line. See these
docs. Take a look at the -migrate option and the -outputdir switch
The same functionality is accessible through the API. Check out this doc
entry for a sample.