Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing schemaName parameter for roundhouse helper #551

Merged
merged 1 commit into from
Oct 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/app/FakeLib/RoundhouseHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ type RoundhouseParams = {
WorkingDir: string

/// A timeout for the runner.
TimeOut: TimeSpan}
TimeOut: TimeSpan

/// The schema where RH stores it's tables
SchemaName :string
}

/// Roundhouse default parameters - tries to locate rh.exe in any subfolder.
let RoundhouseDefaults = {
Expand Down Expand Up @@ -149,7 +153,8 @@ let RoundhouseDefaults = {
WarnOnOneTimeScriptChanges = false
ToolPath = findToolInSubPath "rh.exe" (currentDirectory @@ "tools" @@ "rh")
WorkingDir = null
TimeOut = TimeSpan.FromMinutes 5.}
TimeOut = TimeSpan.FromMinutes 5.
SchemaName = null}

let private getStringParam k (v : string)=
match isNullOrEmpty v with
Expand Down Expand Up @@ -210,10 +215,11 @@ let private getParamPairs (rh: RoundhouseParams) =
let restore = getBoolParam "restore" rh.Restore
let silent = getBoolParam "silent" rh.Silent
let warn = getBoolParam "w" rh.WarnOnOneTimeScriptChanges
let schemaName = getStringParam "sc" rh.SchemaName

[dbName;sqlFilesDir;server;connString;connStringAdmin;cmdTimeout;cmdTimeoutAdmin;dbType;outPath;versionFile;versionXPath;repoPath;env;customCreateScript;restoreFilePath;alterFolderPath;
runAfterOtherTimeFolderPath;runAfterCreateFolderPath;runBeforeUpFolderPath;upFolderPath;runFirstAfterUpdateFolderPath;funcFolderPath;viewsFolderPath;sprocsFolderPath;indexFolderPath;
permissionsFolderPath;drop;simple;transaction;restore;silent;warn;]
permissionsFolderPath;drop;simple;transaction;restore;silent;warn;schemaName]


/// This task to can be used to run [RoundhousE](http://projectroundhouse.org/) for database migrations.
Expand Down