File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,12 @@ Param (
31
31
[string ]$Type = ' SQLServer'
32
32
)
33
33
34
- # Import module
35
- If (-not (Get-Module dbops)) {
36
- Import-Module " $PSScriptRoot \Modules\dbops\dbops.psd1"
34
+ # Import modules
35
+ foreach ($module in @ (' PSFramework' , ' dbops' )) {
36
+ if (-not (Get-Module $module )) {
37
+ Import-Module " $PSScriptRoot \Modules\$module "
38
+ }
37
39
}
38
- . " $PSScriptRoot \Modules\dbops\internal\classes\DBOps.enums.ps1"
39
40
40
41
$config = Get-DBOConfig - Path " $PSScriptRoot \dbops.config.json" - Configuration $Configuration
41
42
@@ -62,7 +63,8 @@ foreach ($key in ($PSBoundParameters.Keys)) {
62
63
63
64
if ($PSCmdlet.ShouldProcess ($params.PackageFile , " Initiating the deployment of the package" )) {
64
65
Invoke-DBODeployment @params
65
- } else {
66
+ }
67
+ else {
66
68
Invoke-DBODeployment @params - WhatIf
67
69
}
68
70
You can’t perform that action at this time.
0 commit comments