Skip to content

Commit 43d128f

Browse files
committed
Update CHANGELOG to reflect mandatory FileGroup parameter in New-SqlDscDataFile; add suppression for ScriptAnalyzer warning in function
1 parent 8cdb4ee commit 43d128f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3838
Server FileGroups. This command simplifies creating DataFile objects with
3939
specified physical file paths, supporting both regular database files (.mdf, .ndf)
4040
and sparse files for database snapshots (.ss). The `FileGroup` parameter is
41-
optional, allowing DataFile objects to be created standalone and assigned to a
42-
FileGroup later.
41+
mandatory, requiring DataFile objects to be created with an associated FileGroup.
4342
- Added public command `Add-SqlDscDataFile` to add an existing DataFile object
4443
to a FileGroup. This command provides a clean way to associate DataFile objects
4544
with FileGroups after they have been created.

source/Public/New-SqlDscDataFile.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
#>
4646
function New-SqlDscDataFile
4747
{
48+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples', '', Justification = 'Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
4849
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
4950
[OutputType([Microsoft.SqlServer.Management.Smo.DataFile])]
5051
param

0 commit comments

Comments
 (0)