Skip to content

Commit

Permalink
Merge pull request #5066 from tkwj/Invoke-DbaDbUpgrade-fix5047
Browse files Browse the repository at this point in the history
updating Invoke-DbaDbUpgrade for #5047
  • Loading branch information
potatoqualitee authored Feb 9, 2019
2 parents b681440 + 59a65b4 commit db1923a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/Invoke-DbaDbUpgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ function Invoke-DbaDbUpgrade {

$InputObject = $InputObject | Where-Object { $_.IsSystemObject -eq $false }
if ($Database) {
$InputObject = $InputObject | Where-Object { $_.Name -contains $Database }
$InputObject = $InputObject | Where-Object Name -In $Database
}
if ($ExcludeDatabase) {
$InputObject = $InputObject | Where-Object { $_.Name -notcontains $ExcludeDatabase }
$InputObject = $InputObject | Where-Object Name -NotIn $ExcludeDatabase
}

foreach ($db in $InputObject) {
Expand Down

0 comments on commit db1923a

Please sign in to comment.