From 34cd5976f14d1b988284b7665fadf02e398df79b Mon Sep 17 00:00:00 2001 From: sstad Date: Tue, 8 Jan 2019 14:20:53 +0100 Subject: [PATCH 1/4] Added money type --- functions/New-DbaDbMaskingConfig.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/New-DbaDbMaskingConfig.ps1 b/functions/New-DbaDbMaskingConfig.ps1 index c2d369a903..e62f3e636c 100644 --- a/functions/New-DbaDbMaskingConfig.ps1 +++ b/functions/New-DbaDbMaskingConfig.ps1 @@ -341,6 +341,11 @@ function New-DbaDbMaskingConfig { $subType = "Float" $MaxValue = $null } + "money" { + $type = "Commerce" + $subType = "Price" + $MaxValue = $null + } "smallint" { $subType = "Number" $MaxValue = 32767 From 7bdf8828d69c6f9b8af42df5e2ef938fcf019dc1 Mon Sep 17 00:00:00 2001 From: sstad Date: Tue, 8 Jan 2019 14:30:26 +0100 Subject: [PATCH 2/4] Added txt data type --- functions/New-DbaDbMaskingConfig.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/New-DbaDbMaskingConfig.ps1 b/functions/New-DbaDbMaskingConfig.ps1 index e62f3e636c..a114628eb3 100644 --- a/functions/New-DbaDbMaskingConfig.ps1 +++ b/functions/New-DbaDbMaskingConfig.ps1 @@ -354,6 +354,10 @@ function New-DbaDbMaskingConfig { $subType = "Date" $MaxValue = $null } + "text"{ + $subType = "String" + $maxValue = 2147483647 + } "tinyint" { $subType = "Number" $MaxValue = 255 From 4e3390e7c3b1eb216235f0f602f22a645a322a77 Mon Sep 17 00:00:00 2001 From: sstad Date: Fri, 11 Jan 2019 12:09:19 +0100 Subject: [PATCH 3/4] added min and maxvalue to money type --- functions/New-DbaDbMaskingConfig.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/New-DbaDbMaskingConfig.ps1 b/functions/New-DbaDbMaskingConfig.ps1 index a114628eb3..7eba9b39b3 100644 --- a/functions/New-DbaDbMaskingConfig.ps1 +++ b/functions/New-DbaDbMaskingConfig.ps1 @@ -344,7 +344,8 @@ function New-DbaDbMaskingConfig { "money" { $type = "Commerce" $subType = "Price" - $MaxValue = $null + $min = -922337203685477.5808 + $MaxValue = 922337203685477.5807 } "smallint" { $subType = "Number" From 787d14f1cce35528fe4be6df7a55c491741d49ee Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Fri, 11 Jan 2019 14:38:57 +0100 Subject: [PATCH 4/4] otsb --- functions/New-DbaDbMaskingConfig.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/New-DbaDbMaskingConfig.ps1 b/functions/New-DbaDbMaskingConfig.ps1 index 7eba9b39b3..20106f9db8 100644 --- a/functions/New-DbaDbMaskingConfig.ps1 +++ b/functions/New-DbaDbMaskingConfig.ps1 @@ -355,7 +355,7 @@ function New-DbaDbMaskingConfig { $subType = "Date" $MaxValue = $null } - "text"{ + "text" { $subType = "String" $maxValue = 2147483647 }