Skip to content

Commit

Permalink
SqlDatabase: Add Version160 to CompatibilityLevel ValidateSet (#1973)
Browse files Browse the repository at this point in the history
- SqlDatabase
  - Add Version160 to CompatibilityLevel ValidateSet
  • Loading branch information
gotit96 authored Sep 29, 2023
1 parent 7d3304b commit 2fe45da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- SqlDatabase
- Add Version160 to CompatibilityLevel ValidateSet

### Added

- SqlServerDsc
Expand Down
4 changes: 2 additions & 2 deletions source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function Set-TargetResource
$Collation,

[Parameter()]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150')]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160')]
[System.String]
$CompatibilityLevel,

Expand Down Expand Up @@ -432,7 +432,7 @@ function Test-TargetResource
$Collation,

[Parameter()]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150')]
[ValidateSet('Version80', 'Version90', 'Version100', 'Version110', 'Version120', 'Version130', 'Version140', 'Version150', 'Version160')]
[System.String]
$CompatibilityLevel,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DSC_SqlDatabase : OMI_BaseResource
[Write, Description("When set to `'Present'`, the database will be created. When set to `'Absent'`, the database will be dropped. Default value is `'Present'`."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
[Write, Description("The host name of the _SQL Server_ to be configured. Default value is the current computer name.")] String ServerName;
[Write, Description("The name of the collation to use for the new database. Default value is the collation used by the server.")] String Collation;
[Write, Description("Specifies the version of the _SQL Database Compatibility Level_ to use for the specified database."), ValueMap{"Version80","Version90","Version100","Version110","Version120","Version130","Version140","Version150"}, Values{"Version80","Version90","Version100","Version110","Version120","Version130","Version140","Version150"}] String CompatibilityLevel;
[Write, Description("Specifies the version of the _SQL Database Compatibility Level_ to use for the specified database."), ValueMap{"Version80","Version90","Version100","Version110","Version120","Version130","Version140","Version150","Version160"}, Values{"Version80","Version90","Version100","Version110","Version120","Version130","Version140","Version150","Version160"}] String CompatibilityLevel;
[Write, Description("The recovery model for the specified database."), ValueMap{"Simple","Full","BulkLogged"}, Values{"Simple","Full","BulkLogged"}] String RecoveryModel;
[Write, Description("Specifies the name of the login that should be the owner of the database.")] String OwnerName;
};

0 comments on commit 2fe45da

Please sign in to comment.