Skip to content

Commit 0e9ea60

Browse files
committed
added switch
1 parent 5f95902 commit 0e9ea60

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
### Added
1919

20-
- Added `Install-Package` parameter for IgnoreWithNocheckOnCheckConstraints and IgnoreWithNocheckOnForeignKeys.
20+
- Added `Install-Package` parameter for IgnoreWithNocheckOnCheckConstraints, IgnoreWithNocheckOnForeignKeys and ScriptNewConstraintValidation.
2121

2222
## [1.6.0] - 2023-08-24
2323

src/PsDac/InstallPackageCommand.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public SwitchParameter IgnoreWithNocheckOnCheckConstraints
7171
set { DeployOptions.IgnoreWithNocheckOnCheckConstraints = value.IsPresent; }
7272
}
7373

74+
[Parameter()]
75+
public SwitchParameter SkipNewConstraintValidation
76+
{
77+
set { DeployOptions.ScriptNewConstraintValidation = !value.IsPresent; }
78+
}
79+
7480
#region Timeouts
7581

7682
[Parameter()]

0 commit comments

Comments
 (0)