Skip to content

Commit

Permalink
fix just this (#5771)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored Jun 18, 2019
1 parent 37a9fc0 commit df1957e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/Restore-DbaDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ function Restore-DbaDatabase {
return
}
if ($PSCmdlet.ParameterSetName -like "Restore*") {
if ($BackupHistory.Count -eq 0) {
if ($BackupHistory.Count -eq 0 -and $RestoreInstance.VersionMajor -ne 8) {
Write-Message -Level Warning -Message "No backups passed through. `n This could mean the SQL instance cannot see the referenced files, the file's headers could not be read or some other issue"
return
}
Expand Down

0 comments on commit df1957e

Please sign in to comment.