From 2fe45da6b3a9b07937ad9d8e003dd7dfc617d8fe Mon Sep 17 00:00:00 2001 From: gotit96 <46739469+gotit96@users.noreply.github.com> Date: Fri, 29 Sep 2023 17:45:51 +0200 Subject: [PATCH] SqlDatabase: Add Version160 to CompatibilityLevel ValidateSet (#1973) - SqlDatabase - Add Version160 to CompatibilityLevel ValidateSet --- CHANGELOG.md | 5 +++++ source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.psm1 | 4 ++-- .../DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.schema.mof | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b5af741d..6c8612a12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.psm1 b/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.psm1 index dae216fa7..aab411d68 100644 --- a/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.psm1 +++ b/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.psm1 @@ -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, @@ -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, diff --git a/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.schema.mof b/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.schema.mof index f33f5225f..e3199a8c5 100644 --- a/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.schema.mof +++ b/source/DSCResources/DSC_SqlDatabase/DSC_SqlDatabase.schema.mof @@ -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; };