dataplat / dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
https://dbatools.io
MIT License
2.39k stars 788 forks source link

Restore-DbaDatabase - improve warning output for standby mode databases #9230

Closed 0x7FFFFFFFFFFFFFFF closed 4 months ago

0x7FFFFFFFFFFFFFFF commented 5 months ago

Updated the recovery logic to include databases in standby mode. Previously, the code only addressed databases in the restoring state, which did not account for standby scenarios. This change ensures a more comprehensive recovery process.

Please read -- recent changes to our repo

On November 10, 2022, we removed some bloat from our repository (for the second and final time). This change requires that all contributors reclone or refork their repo.

PRs from repos that have not been recently reforked or recloned will be closed and @potatoqualitee will cherry-pick your commits and open a new PR with your changes.

Type of Change

wsmelton commented 5 months ago

This is marked as being a bug fix, what bug issue is being addressed 😉 ?

0x7FFFFFFFFFFFFFFF commented 5 months ago

This is marked as being a bug fix, what bug issue is being addressed 😉 ?

There doesn't appear to be a related issue; however, it's unable to recover standby database.

jpomfret commented 4 months ago

@wsmelton - do you want an issue created to track this bug fix? or we good to merge?

potatoqualitee commented 4 months ago

Merging due to Niph's approval since it's been a while.