We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aaa644 commit 1d80f9fCopy full SHA for 1d80f9f
1 file changed
PSql.Deploy/Commands/GetSqlMigrationsCommand.cs
@@ -23,7 +23,7 @@ public sealed class GetSqlMigrationsCommand : AsyncPSCmdlet
23
/// </summary>
24
[Parameter(
25
ParameterSetName = "Path",
26
- Mandatory = true,
+ Mandatory = false,
27
Position = 0,
28
ValueFromPipeline = true
29
)]
@@ -71,7 +71,7 @@ private async Task ProcessRecordAsync()
71
{
72
var migrations = ParameterSetName switch
73
74
- "Path" => GetMigrations(Path!),
+ "Path" => GetMigrations(Path),
75
_ => await GetMigrationsAsync(Target!),
76
};
77
@@ -84,7 +84,7 @@ private async Task ProcessRecordAsync()
84
WriteObject(new Migration(migration));
85
}
86
87
- private IReadOnlyList<M.Migration> GetMigrations(string path)
+ private IReadOnlyList<M.Migration> GetMigrations(string? path)
88
89
path = this.GetFullPath(path);
90
0 commit comments