ps/Modules/Alkami.PowerShell.Database/Public/Get-MigrationRunnerPath.ps1

15 lines
388 B
PowerShell
Raw Normal View History

2023-05-30 22:51:22 -07:00
function Get-MigrationRunnerPath {
<#
.SYNOPSIS
Get the path to the default location for fluent migrator libraries
#>
[CmdletBinding()]
[OutputType([System.String])]
Param()
$path = "C:\ProgramData\Alkami\Alkami\MachineSetup\DatabaseCore"
if (!(Test-Path $path)) {
(New-Item -ItemType Directory -Path $path -Force -ErrorAction Ignore) | Out-Null
}
return $path
}