Skip to content

Commit d7cc612

Browse files
sanderstadpotatoqualitee
authored andcommitted
Fix masking (#4942)
* Added money type * Added txt data type * added min and maxvalue to money type * otsb
1 parent 4a7c5a5 commit d7cc612

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

functions/New-DbaDbMaskingConfig.ps1

+10
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ function New-DbaDbMaskingConfig {
341341
$subType = "Float"
342342
$MaxValue = $null
343343
}
344+
"money" {
345+
$type = "Commerce"
346+
$subType = "Price"
347+
$min = -922337203685477.5808
348+
$MaxValue = 922337203685477.5807
349+
}
344350
"smallint" {
345351
$subType = "Number"
346352
$MaxValue = 32767
@@ -349,6 +355,10 @@ function New-DbaDbMaskingConfig {
349355
$subType = "Date"
350356
$MaxValue = $null
351357
}
358+
"text" {
359+
$subType = "String"
360+
$maxValue = 2147483647
361+
}
352362
"tinyint" {
353363
$subType = "Number"
354364
$MaxValue = 255

0 commit comments

Comments
 (0)