Skip to content

Commit

Permalink
0.9.773
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Feb 24, 2019
1 parent 819a436 commit b096f15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions allcommands.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12958,6 +12958,7 @@ function Copy-DbaSsisCatalog {
)
<# Developer note: The throw calls must stay in this command #>
begin {
$ISNamespace = "Microsoft.SqlServer.Management.IntegrationServices"
function Get-RemoteIntegrationService {
param (
[Object]$Computer
Expand Down Expand Up @@ -55110,13 +55111,13 @@ function Install-DbaMaintenanceSolution {
Installs Ola Hallengren's Solution objects on RES14224 in the DBA database.
Backups will default to the default Backup Directory.
If the Maintenance Solution already exists, the script will be halted.

.EXAMPLE
PS C:\> Install-DbaMaintenanceSolution -SqlInstance RES14224 -Database DBA -BackupLocation "Z:\SQLBackup" -CleanupTime 72

This will create the Ola Hallengren's Solution objects. Existing objects are not affected in any way.


.EXAMPLE
PS C:\> $params = @{
>> SqlInstance = 'MyServer'
Expand All @@ -55129,7 +55130,7 @@ function Install-DbaMaintenanceSolution {
>> Verbose = $true
>> }
>> Install-DbaMaintenanceSolution @params

Installs Maintenance Solution to myserver in database. Adds Agent Jobs, and if any currently exist, they'll be replaced.

.EXAMPLE
Expand Down Expand Up @@ -55400,7 +55401,7 @@ function Install-DbaMaintenanceSolution {
if ($jobs) {
$jobs | ForEach-Object {
if ($Pscmdlet.ShouldProcess($instance, "Dropping job $_.name")) {
Remove-DbaAgentJob -SqlInstance $instance -Job $_.name
Remove-DbaAgentJob -SqlInstance $server -Job $_.name
}
}
}
Expand Down Expand Up @@ -85458,12 +85459,12 @@ function Set-DbaAgentSchedule {

if ($StartDate) {
Write-Message -Message "Setting job schedule start date to $StartDate for schedule $ScheduleName" -Level Verbose
$JobSchedule.StartDate = $StartDate
$JobSchedule.ActiveStartDate = $StartDate
}

if ($EndDate) {
Write-Message -Message "Setting job schedule end date to $EndDate for schedule $ScheduleName" -Level Verbose
$JobSchedule.EndDate = $EndDate
$JobSchedule.ActiveEndDate = $EndDate
}

if ($StartTime) {
Expand Down
2 changes: 1 addition & 1 deletion dbatools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'dbatools.psm1'

# Version number of this module.
ModuleVersion = '0.9.772'
ModuleVersion = '0.9.773'

# ID used to uniquely identify this module
GUID = '9d139310-ce45-41ce-8e8b-d76335aa1789'
Expand Down
4 changes: 2 additions & 2 deletions tests/Get-DbaDependency.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan
Describe "$CommandName Unit Tests" -Tag 'UnitTests' {
Context "Validate parameters" {
[object[]]$params = (Get-Command $CommandName).Parameters.Keys | Where-Object {$_ -notin ('whatif', 'confirm')}
[object[]]$knownParameters = 'InputObject','AllowSystemObjects','Parents','IncludeSelf','EnableException'
[object[]]$knownParameters = 'InputObject', 'AllowSystemObjects', 'Parents', 'IncludeSelf', 'EnableException'
$knownParameters += [System.Management.Automation.PSCmdlet]::CommonParameters
It "Should only contain our specific parameters" {
(@(Compare-Object -ReferenceObject ($knownParameters | Where-Object {$_}) -DifferenceObject $params).Count ) | Should Be 0
Expand All @@ -15,5 +15,5 @@ Describe "$CommandName Unit Tests" -Tag 'UnitTests' {
<#
Integration test should appear below and are custom to the command you are writing.
Read https://github.com/sqlcollaborative/dbatools/blob/development/contributing.md#tests
for more guidence.
for more guidance.
#>

0 comments on commit b096f15

Please sign in to comment.