In one of my projects, the databases are named different with different prefixes in the different environments (integration, accpeptance, production), but I want to keep the scripts in SVN (that is what I use ScriptDB for) in a folder named without prefix.
To do this, i altered the source code in the following way:
- Add a new command line argument named DatabaseFolderName:
string databaseFolderName = arguments["DatabaseFolderName"];
- Set output folder to be named with this command argument if it is supplied:
if (databaseFolderName == null)
outputDirectory = Path.Combine(outputDirectory, database);
outputDirectory = Path.Combine(outputDirectory, databaseFolderName);
The changes are also attached to this isse as a patch created with TortoiseSVN.