Skip to content

Commit

Permalink
Added SynchronizeSchemaChanges for DynamicsNAV
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 9, 2018
1 parent d1adbb9 commit a69d21a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/app/FakeLib/DynamicsNavHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ open System.IO
open System.Threading
open System.Xml
open Fake.UnitTestHelper
open System.Runtime.InteropServices
open System.Runtime.InteropServices

module Replacements =
let isWin8 =
Expand Down Expand Up @@ -255,9 +253,9 @@ let CompileWithFilter filter (connectionInfo:DynamicsNavParams) =
(FullName connectionInfo.TempLogFile) connectionInfo.ServerName connectionInfo.Database
let args =
match connectionInfo.SynchronizeSchemaChanges with
| SynchronizeSchemaChanges.No -> args
| SynchronizeSchemaChanges.Yes -> args + ", SynchronizeSchemaChanges=\"yes\""
| SynchronizeSchemaChanges.Force -> args + ", SynchronizeSchemaChanges=\"force\""
| SynchronizeSchemaChangesOption.No -> args
| SynchronizeSchemaChangesOption.Yes -> args + ", SynchronizeSchemaChanges=\"yes\""
| SynchronizeSchemaChangesOption.Force -> args + ", SynchronizeSchemaChanges=\"force\""

if 0 <> ExecProcess (fun info ->
info.FileName <- connectionInfo.ToolPath
Expand All @@ -279,9 +277,9 @@ let CompileAll connectionInfo =

let args =
match connectionInfo.SynchronizeSchemaChanges with
| SynchronizeSchemaChanges.No -> args
| SynchronizeSchemaChanges.Yes -> args + ", SynchronizeSchemaChanges=\"yes\""
| SynchronizeSchemaChanges.Force -> args + ", SynchronizeSchemaChanges=\"force\""
| SynchronizeSchemaChangesOption.No -> args
| SynchronizeSchemaChangesOption.Yes -> args + ", SynchronizeSchemaChanges=\"yes\""
| SynchronizeSchemaChangesOption.Force -> args + ", SynchronizeSchemaChanges=\"force\""

if 0 <> ExecProcess (fun info ->
info.FileName <- connectionInfo.ToolPath
Expand Down

0 comments on commit a69d21a

Please sign in to comment.